pathutil.rs (ripgrep-12.1.1) | : | pathutil.rs (ripgrep-13.0.0) | ||
---|---|---|---|---|
use std::ffi::OsStr; | use std::ffi::OsStr; | |||
use std::path::Path; | use std::path::Path; | |||
use walk::DirEntry; | use crate::walk::DirEntry; | |||
/// Returns true if and only if this entry is considered to be hidden. | /// Returns true if and only if this entry is considered to be hidden. | |||
/// | /// | |||
/// This only returns true if the base name of the path starts with a `.`. | /// This only returns true if the base name of the path starts with a `.`. | |||
/// | /// | |||
/// On Unix, this implements a more optimized check. | /// On Unix, this implements a more optimized check. | |||
#[cfg(unix)] | #[cfg(unix)] | |||
pub fn is_hidden(dent: &DirEntry) -> bool { | pub fn is_hidden(dent: &DirEntry) -> bool { | |||
use std::os::unix::ffi::OsStrExt; | use std::os::unix::ffi::OsStrExt; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |