diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-10-26 21:11:28 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-10-26 21:11:28 +0000 |
commit | a834fd1c09f1a0d8c03ba96268d6059b1014b196 (patch) | |
tree | 976c0fe6ce1ecd7a904e06c2151f8dda56065d94 | |
parent | 60e716028144daa293345dc91c0f793147564042 (diff) | |
download | acf-lib-a834fd1c09f1a0d8c03ba96268d6059b1014b196.tar.bz2 acf-lib-a834fd1c09f1a0d8c03ba96268d6059b1014b196.tar.xz |
Fix exception for broken symlink
-rw-r--r-- | fs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -178,7 +178,7 @@ function find_files_as_array ( what, where, follow, t ) local link if follow and is_link(where) then link = posix.readlink(where) - if not string.find(link, "^/") then + if link and not string.find(link, "^/") then link = posix.dirname(where).."/"..link end end |