mirror of
https://github.com/sharkdp/fd
synced 2024-09-15 22:20:45 +00:00
RedoxOS support.
This commit is contained in:
parent
d2d2c31307
commit
715b07599b
|
@ -5,7 +5,7 @@ use std::{fs, process};
|
|||
use std::io::{self, Write};
|
||||
use std::ops::Deref;
|
||||
use std::path::{self, Path, PathBuf, Component};
|
||||
#[cfg(unix)]
|
||||
#[cfg(any(unix, target_os = "redox"))]
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
|
||||
use ansi_term;
|
||||
|
@ -102,7 +102,7 @@ fn get_path_style<'a>(path: &Path, ls_colors: &'a LsColors) -> Option<&'a ansi_t
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[cfg(any(unix, target_os = "redox"))]
|
||||
fn is_executable(md: &fs::Metadata) -> bool {
|
||||
md.permissions().mode() & 0o111 != 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue