aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/lfs_ext.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-08-21 15:52:40 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-08-21 15:52:40 -0400
commitdf3c20397818d29e459b4028bbb5bb921713d8e5 (patch)
tree11f3b679c046d2ea3c0caa84753274e1d79ac5d9 /core/lfs_ext.lua
parentf275e0054dbfc6d1604031d93ac08d376c9029fb (diff)
Code cleanup.
Diffstat (limited to 'core/lfs_ext.lua')
-rw-r--r--core/lfs_ext.lua13
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