diff options
Diffstat (limited to 'crates/shirabe')
| -rw-r--r-- | crates/shirabe/src/util/filesystem.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/filesystem.rs b/crates/shirabe/src/util/filesystem.rs index 6cb33385..066b1981 100644 --- a/crates/shirabe/src/util/filesystem.rs +++ b/crates/shirabe/src/util/filesystem.rs @@ -841,8 +841,7 @@ impl Filesystem { } if is_dir(path) { - return Silencer::call(|| Ok(shirabe_php_shim::opendir(path).is_some())) - .unwrap_or(false); + return Silencer::call(|| Ok(std::fs::read_dir(path).is_ok())).unwrap_or(false); } // assume false otherwise |
