diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-28 14:11:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-28 14:11:39 +0000 |
commit | 5700d48f9d9d6906937003297a7f35f9ba212c29 (patch) | |
tree | 9ef68efcca91061a51fbe5ecd9af9d75dcdcda44 | |
parent | 37679c1bba4cb10af9d7b8096c4c54aed6c6edbe (diff) | |
download | acf-core-5700d48f9d9d6906937003297a7f35f9ba212c29.tar.bz2 acf-core-5700d48f9d9d6906937003297a7f35f9ba212c29.tar.xz |
Fix fs.find bug that returned invalid file.
-rw-r--r-- | lib/fs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -183,7 +183,7 @@ function find_files_as_array ( what, where, follow, t ) table.insert (t, ( string.gsub ( where .. "/" .. d, "/+", "/" ) ) ) end end - elseif (string.match (posix.basename(where), "^" .. what .. "$" )) then + elseif (string.match (posix.basename(where), "^" .. what .. "$" )) and posix.stat(where) then table.insert (t, where ) end |