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