diff options
Diffstat (limited to 'src/module_wrap.cc')
| -rw-r--r-- | src/module_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 1342fd0393..ca4e22b0e7 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -332,7 +332,7 @@ inline const struct file_check check_file(URL search, bool allow_dir = false) { struct file_check ret; uv_fs_t fs_req; - uv_fs_open(nullptr, &fs_req, search.path().c_str(), O_RDONLY, 0, nullptr); + uv_fs_open(nullptr, &fs_req, search.decoded_path().c_str(), O_RDONLY, 0, nullptr); auto fd = fs_req.result; if (fd < 0) { return ret; |
