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 07d3be0 commit c4f4c40Copy full SHA for c4f4c40
src/utils/file_check.rs
@@ -6,7 +6,12 @@ use faccess::PathExt;
6
use nix::unistd;
7
use std::fs;
8
use std::os::unix::fs::{FileTypeExt, PermissionsExt};
9
+
10
+#[cfg(target_os = "linux")]
11
use std::os::linux::fs::MetadataExt;
12
+#[cfg(target_os = "macos")]
13
+use std::os::macos::fs::MetadataExt;
14
15
use std::path::Path;
16
17
pub fn exists(name: &str) -> bool {
0 commit comments