Function bp3d_os::fs::is_hidden

source ·
pub fn is_hidden<T: AsRef<Path>>(path: T) -> bool
Available on crate feature fs only.
Expand description

Checks if a given path is hidden.

Platform specific behavior

  • On Unix, this function returns true when the given path has a ‘.’ prefix.

  • On Windows, this function return true when GetFileAttributesW succeeds and that the file attributes contains the attribute FILE_ATTRIBUTE_HIDDEN.

Arguments

  • path: the path to check.

returns: bool