We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf5e9d commit 0afc7e5Copy full SHA for 0afc7e5
yowasp_runtime/__init__.py
@@ -68,7 +68,7 @@ def run_wasm(__package__, wasm_filename, *, resources=[], argv):
68
else:
69
# can't do this for files, but no one's going to use yowasp on files in / anyway
70
for path in os.listdir("/"):
71
- if os.path.isdir("/" + path):
+ if os.path.isdir("/" + path) and os.access("/" + path, os.R_OK):
72
wasi_cfg.preopen_dir("/" + path, "/" + path)
73
74
# preopens for relative paths
0 commit comments