std::fs::canonicalize
pub fn canonicalize<P: AsRef<Path>>(path: P) -> Result<PathBuf>
- Kind
- function
- Module
std::fs- Since
- 1.5.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::fs in the Rust reference. This page has 87 cards.
pub fn canonicalize<P: AsRef<Path>>(path: P) -> Result<PathBuf>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> Result<u64>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create_dir<P: AsRef<Path>>(path: P) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create_dir_all<P: AsRef<Path>>(path: P) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Dir
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn metadata(&self) -> Result<Metadata>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn open_file<P: AsRef<Path>>(&self, path: P) -> Result<File>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct DirBuilder
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create<P: AsRef<Path>>(&self, path: P) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new() -> DirBuilder
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn recursive(&mut self, recursive: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct DirEntry(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn file_name(&self) -> OsString
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn file_type(&self) -> Result<FileType>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn metadata(&self) -> Result<Metadata>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn path(&self) -> PathBuf
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn exists<P: AsRef<Path>>(path: P) -> Result<bool>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct File
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create<P: AsRef<Path>>(path: P) -> Result<File>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create_buffered<P: AsRef<Path>>(path: P) -> Result<BufWriter<File>>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create_new<P: AsRef<Path>>(path: P) -> Result<File>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lock(&self) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lock_shared(&self) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn metadata(&self) -> Result<Metadata>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn open<P: AsRef<Path>>(path: P) -> Result<File>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn open_buffered<P: AsRef<Path>>(path: P) -> Result<BufReader<File>>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn options() -> OpenOptions
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_len(&self, size: u64) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_modified(&self, time: SystemTime) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_permissions(&self, perm: Permissions) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_times(&self, times: FileTimes) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn sync_all(&self) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn sync_data(&self) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_clone(&self) -> Result<File>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_lock(&self) -> Result<(), TryLockError>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_lock_shared(&self) -> Result<(), TryLockError>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn unlock(&self) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct FileTimes(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new() -> Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_accessed(self, t: SystemTime) -> Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_modified(self, t: SystemTime) -> Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct FileType(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_dir(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_file(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_symlink(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>( original: P, link: Q, ) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Metadata(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn accessed(&self) -> Result<SystemTime>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn created(&self) -> Result<SystemTime>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn file_type(&self) -> FileType
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_dir(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_file(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_symlink(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn len(&self) -> u64
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn modified(&self) -> Result<SystemTime>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn permissions(&self) -> Permissions
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OpenOptions(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn append(&mut self, append: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create(&mut self, create: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn create_new(&mut self, create_new: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new() -> Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn open<P: AsRef<Path>>(&self, path: P) -> Result<File>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read(&mut self, read: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn truncate(&mut self, truncate: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write(&mut self, write: bool) -> &mut Self
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Permissions(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn readonly(&self) -> bool
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_readonly(&mut self, readonly: bool)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read<P: AsRef<Path>>(path: P) -> Result<Vec<u8>>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read_dir<P: AsRef<Path>>(path: P) -> Result<ReadDir>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read_link<P: AsRef<Path>>(path: P) -> Result<PathBuf>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn read_to_string<P: AsRef<Path>>(path: P) -> Result<String>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ReadDir(/* private fields */)
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_dir<P: AsRef<Path>>(path: P) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn remove_file<P: AsRef<Path>>(path: P) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_permissions<P: AsRef<Path>>(path: P, perm: Permissions) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_permissions_nofollow<P: AsRef<Path>>( path: P, perm: Permissions, ) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_times<P: AsRef<Path>>(path: P, times: FileTimes) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn set_times_nofollow<P: AsRef<Path>>( path: P, times: FileTimes, ) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn soft_link<P: AsRef<Path>, Q: AsRef<Path>>( original: P, link: Q, ) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum TryLockError
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> Result<()>
std::fsSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.