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 4a3fce7 commit bc95124Copy full SHA for bc95124
1 file changed
src/fs.rs
@@ -1,14 +1,12 @@
1
use std::fs;
2
3
-#[cfg(any(unix, target_os = "redox"))]
4
-use std::os::unix::fs::PermissionsExt;
5
-
6
#[cfg(any(unix, target_os = "redox"))]
7
pub fn is_executable(md: &fs::Metadata) -> bool {
+ use std::os::unix::fs::PermissionsExt;
8
md.permissions().mode() & 0o111 != 0
9
}
10
11
-#[cfg(windows)]
+#[cfg(any(windows, target_os = "wasi"))]
12
pub fn is_executable(_: &fs::Metadata) -> bool {
13
false
14
0 commit comments