file_type_enum-1.0.0 has been yanked.
file_type_enum
An enum with a variant for each file type.
If you don't need an enum, check these methods from std instead:
- [
Path::is_file]. - [
Path::is_dir]. - [
Path::is_symlink].
Example
use FileType;
Note that the [FileType::from_path] follows symlinks and [FileType::from_symlink_path] does not.
Conversions
- From
AsRef<Path>,fs::Metadataand std'sFileType. - From and into [
libc::mode_t] (via the feature"mode-t-conversion").
Contributing
Issues and PRs are welcome.
License: MIT