Expand description
Utility module re-exporting filesystem functions.
If the fs-err3
feature is enabled, all of these
items will point to functions from fs-err
v3.
Otherwise, if the fs-err2
feature is enabled, all of these
items will point to functions from fs-err
v2.
Otherwise, all of these items will point to functions from the standard library.
Re-exports§
pub use fs4::FsStats as Stats;
pub use fs4::statvfs as stats;
pub use fs4::lock_contended_error;
pub use fs4::fs_err3::FileExt;
pub use std::fs::FileTimes;
pub use std::fs::FileType;
pub use std::fs::Metadata;
pub use std::fs::Permissions;
pub use fs_err3::DirEntry;
pub use fs_err3::File;
pub use fs_err3::OpenOptions;
pub use fs_err3::ReadDir;
pub use fs_err3::canonicalize as canonicalize_raw;
pub use fs_err3::copy;
pub use fs_err3::create_dir;
pub use fs_err3::create_dir_all;
pub use fs_err3::hard_link;
pub use fs_err3::metadata;
pub use fs_err3::read;
pub use fs_err3::read_dir;
pub use fs_err3::read_link;
pub use fs_err3::read_to_string;
pub use fs_err3::remove_dir;
pub use fs_err3::remove_dir_all;
pub use fs_err3::remove_file;
pub use fs_err3::rename;
pub use fs_err3::set_permissions;
pub use fs_err3::symlink_metadata;
pub use fs_err3::write;
pub use fs_err3 as fs_err;
Functions§
- canonicalize
- Behaves like
canonicalize_raw
, but on Windows it outputs the most compatible form of a path instead of UNC. - simplified_
path - Takes a path, returning the most compatible form of a path instead of UNC when on Windows.