aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files.lua2
-rw-r--r--files.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/files.lua b/files.lua
index 72d9a43..eaea883 100644
--- a/files.lua
+++ b/files.lua
@@ -177,7 +177,7 @@ Files.walk = function(path, flush_cache)
_BROWSE_CACHE = { }
end
local files
- if path == 'stdin' then
+ if path == 'stdin' or _SPOOFED_FILES[path] then
files = {
path
}
diff --git a/files.moon b/files.moon
index 04bebdb..dc3a8bd 100644
--- a/files.moon
+++ b/files.moon
@@ -103,7 +103,7 @@ Files.walk = (path, flush_cache=false)->
export _BROWSE_CACHE
_BROWSE_CACHE = {}
local files
- if path == 'stdin'
+ if path == 'stdin' or _SPOOFED_FILES[path]
files = {path}
else
for nomsupath in package.nomsupath\gmatch("[^;]+")