diff options
Diffstat (limited to 'core/lfs_ext.lua')
-rw-r--r-- | core/lfs_ext.lua | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/core/lfs_ext.lua b/core/lfs_ext.lua index 47e37e86..ac88d854 100644 --- a/core/lfs_ext.lua +++ b/core/lfs_ext.lua @@ -10,18 +10,13 @@ module('lfs')]] -- The filter table containing common binary file extensions and version control -- directories to exclude when iterating over files and directories using -- `walk`. +-- Extensions excluded: a, bmp, bz2, class, dll, exe, gif, gz, jar, jpeg, jpg, +-- o, pdf, png, so, tar, tgz, tif, tiff, xz, and zip. +-- Directories excluded: .bzr, .git, .hg, .svn, _FOSSIL_, and node_modules. -- @see walk -- @class table -- @name default_filter -lfs.default_filter = { - -- File extensions to exclude. - '!.a', '!.bmp', '!.bz2', '!.class', '!.dll', '!.exe', '!.gif', '!.gz', - '!.jar', '!.jpeg', '!.jpg', '!.o', '!.pdf', '!.png', '!.so', '!.tar', '!.tgz', - '!.tif', '!.tiff', '!.xz', '!.zip', - -- Directories to exclude. - '!/%.bzr$', '!/%.git$', '!/%.hg$', '!/%.svn$', '!/_FOSSIL_$', - '!/node_modules$' -} +lfs.default_filter = {--[[Extensions]]'!.a','!.bmp','!.bz2','!.class','!.dll','!.exe','!.gif','!.gz','!.jar','!.jpeg','!.jpg','!.o','!.pdf','!.png','!.so','!.tar','!.tgz','!.tif','!.tiff','!.xz','!.zip',--[[Directories]]'!/%.bzr$','!/%.git$','!/%.hg$','!/%.svn$','!/_FOSSIL_$','!/node_modules$'} -- Documentation is in `lfs.walk()`. -- @param level Utility value indicating the directory level this function is |