aboutsummaryrefslogtreecommitdiff
path: root/files.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-24 18:39:17 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-24 18:39:34 -0700
commitb09db8f7dfafb39f418b325c2d276c9dc22e36a9 (patch)
tree2ef361c205ce5e57f9b6ad3bfe681c69da504343 /files.moon
parente5d63ad945bece3e1ee271add61a857c30442fe8 (diff)
Cleaning up non LFS codepath for files and README
Diffstat (limited to 'files.moon')
-rw-r--r--files.moon3
1 files changed, 1 insertions, 2 deletions
diff --git a/files.moon b/files.moon
index e873c1d..5422651 100644
--- a/files.moon
+++ b/files.moon
@@ -53,8 +53,7 @@ if ok
break if browse(nomsupath.."/"..path)
return nil
else
- ret = os.execute('find . -maxdepth 0')
- unless ret == true or ret == 0
+ if io.popen('find . -maxdepth 0')\close!
error "Could not find 'luafilesystem' module and couldn't run system command `find` (this might happen on Windows). Please install `luafilesystem` (which can be found at: http://keplerproject.github.io/luafilesystem/ or `luarocks install luafilesystem`)", 0
files.walk = (path)->