Skip to main content

inspect_directory

Function inspect_directory 

Source
pub fn inspect_directory(
    path: impl AsRef<Path>,
) -> Result<DirectoryInspection, PathError>
Expand description

Inspect a path without panicking on I/O errors.

Uses symlink_metadata for the link itself and, when the path is a symlink, also checks whether the target is a directory via metadata.

ยงFilesystem access

Yes. Does not follow symlinks for is_symlink; is_directory is true for symlink-to-directory when the target is reachable.