aboutsummaryrefslogtreecommitdiff
path: root/files.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-02 14:38:24 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-11-02 14:39:23 -0700
commit307dea18815ba4a06a3098edb170d7ad90708815 (patch)
treebce78eb28fa03c9939a92e08e47564afc984c988 /files.moon
parentd0c3c57f7b25c8d912c426e48cb5ab09cd738f65 (diff)
Changed stub convention to (foo 1 baz 2) -> foo_1_baz instead of
foo_1_baz_2, removed "smext", made some cleanup changes.
Diffstat (limited to 'files.moon')
-rw-r--r--files.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/files.moon b/files.moon
index e0fe02b..738c5f8 100644
--- a/files.moon
+++ b/files.moon
@@ -104,6 +104,8 @@ Files.walk = (path, flush_cache=false)->
local files
if path == 'stdin' or _SPOOFED_FILES[path]
files = {path}
+ elseif path\match("^[~/]") or path\match("^%./") or path\match("^%.%./")
+ files = browse(path)
else
for nomsupath in package.nomsupath\gmatch("[^;]+")
if files = browse(nomsupath.."/"..path) then break