mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 09:50:34 +01:00
RedoxOS support.
This commit is contained in:
parent
d2d2c31307
commit
715b07599b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ use std::{fs, process};
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::path::{self, Path, PathBuf, Component};
|
use std::path::{self, Path, PathBuf, Component};
|
||||||
#[cfg(unix)]
|
#[cfg(any(unix, target_os = "redox"))]
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
|
|
||||||
use ansi_term;
|
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 {
|
fn is_executable(md: &fs::Metadata) -> bool {
|
||||||
md.permissions().mode() & 0o111 != 0
|
md.permissions().mode() & 0o111 != 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue