Expand description
Unix-specific extensions to primitives in the std::fs module.
Re-exportsยง
use io::Read;๐use io::Write;๐use super::platform::fs::MetadataExt as _;๐use crate::ffi::OsStr;๐use crate::fs;๐use crate::fs::OpenOptions;๐use crate::fs::Permissions;๐use crate::io::BorrowedCursor;๐Experimental use crate::macros::rustdoc_skip_body;๐use crate::os::unix::io::AsFd;๐use crate::os::unix::io::AsRawFd;๐use crate::path::Path;๐use crate::sys::AsInner;๐use crate::sys::AsInnerMut;๐use crate::sys::FromInner;๐use crate::io;๐use crate::sys;๐pub use dirs::MediaDirsExt;Experimental pub use dirs::HomeDirsExt;Experimental pub use dirs::XdgDirs;Experimental
Modulesยง
- dirs ๐
Traitsยง
- DirBuilder
Ext - Unix-specific extensions to
fs::DirBuilder. - DirEntry
Ext - Unix-specific extension methods for
fs::DirEntry. - FileExt
- Unix-specific extensions to
fs::File. - File
Type Ext - Unix-specific extensions for
fs::FileType. - Metadata
Ext - Unix-specific extensions to
fs::Metadata. - Open
Options Ext - Unix-specific extensions to
fs::OpenOptions. - Permissions
Ext - Unix-specific extensions to
fs::Permissions. - DirEntry
Ext2 Experimental - Unix-specific extension methods for
fs::DirEntry.
Functionsยง
- chown
- Change the owner and group of the specified path.
- chroot
Non-Fuchsia - Change the root directory of the current process to the specified path.
- fchown
- Change the owner and group of the file referenced by the specified open file descriptor.
- lchown
- Change the owner and group of the specified path, without dereferencing symbolic links.
- symlink
- Creates a new symbolic link on the filesystem.
- mkfifo
Experimental - Create a FIFO special file at the specified path with the specified mode.