From b09db8f7dfafb39f418b325c2d276c9dc22e36a9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Jun 2018 18:39:17 -0700 Subject: Cleaning up non LFS codepath for files and README --- files.moon | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'files.moon') 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)-> -- cgit v1.2.3