diff options
author | steve donovan <steve.j.donovan@gmail.com> | 2017-04-02 19:10:06 +0300 |
---|---|---|
committer | steve donovan <steve.j.donovan@gmail.com> | 2017-04-02 19:10:06 +0300 |
commit | 257f74456b67dee009c6482aa28599b7c6832342 (patch) | |
tree | dcec8e5aa22b955cf936960b4625e793532cebcc | |
parent | 89893bce8028396799ca8106051e9e38bf3d294b (diff) |
issue #228: bug in file matching for dir.getfiles1.5.1
-rw-r--r-- | lua/pl/dir.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/pl/dir.lua b/lua/pl/dir.lua index 2b03d49..6fc9b12 100644 --- a/lua/pl/dir.lua +++ b/lua/pl/dir.lua @@ -72,7 +72,7 @@ local function _listfiles(dir,filemode,match) for f in ldir(dir) do if f ~= '.' and f ~= '..' then local p = path.join(dir,f) - if check(p) and (not match or match(p)) then + if check(p) and (not match or match(f)) then append(res,p) end end |