diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-10 16:33:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-10 16:35:08 -0800 |
| commit | 0f0fb2256a46a8808794d7d4746d112278da3730 (patch) | |
| tree | 7cfb6b255beeb49705044876913e0332376b66d9 /files.lua | |
| parent | db552f56dc1f2c6ea19a7d39d38ac66e52ed156e (diff) | |
Major overhaul of how modules and environments work, along with some
steamlining and tweaks to the makefile. Version bump: 6.14.13.8
Diffstat (limited to 'files.lua')
| -rw-r--r-- | files.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ local re = require('re') local Files = { } local run_cmd run_cmd = function(cmd) - local f = io.popen(cmd) + local f = io.popen(cmd .. ' 2>/dev/null') local lines do local _accum_0 = { } @@ -84,7 +84,7 @@ Files.list = function(path) path } else - _BROWSE_CACHE[path] = run_cmd('find -L "' .. path .. '" -not -path "*/\\.*" -type f 2>/dev/null') or false + _BROWSE_CACHE[path] = run_cmd('find -L "' .. path .. '" -not -path "*/\\.*" -type f') or false end end return _BROWSE_CACHE[path] @@ -158,7 +158,7 @@ if ok then return _BROWSE_CACHE[path] end else - if not (run_cmd('find . -maxdepth 0 2>/dev/null')) then + if not (run_cmd('find . -maxdepth 0')) then local url if jit then url = 'https://github.com/spacewander/luafilesystem' |
