Module cap_primitives::fs [−][src]
Filesystem utilities.
Structs
| DirBuilder | A builder used to create directories in various manners. |
| DirEntry | Entries returned by the |
| DirOptions | Options and flags which can be used to configure how a directory is created. |
| FileType | A structure representing a type of file with accessors for each file type. |
| Metadata | Metadata information about a file. |
| OpenOptions | Options and flags which can be used to configure how a file is opened. |
| Permissions | Representation of the various permissions on a file. |
| ReadDir | Iterator over the entries in a directory. |
Enums
| FollowSymlinks | Should symlinks be followed in the last component of a path? |
| SystemTimeSpec | A value for specifying a time. |
Functions
| canonicalize | Canonicalize the given path, ensuring that the resolution of the path never
escapes the directory tree rooted at |
| copy | Copies the contents of one file to another. |
| create_dir | Perform a |
| hard_link | Perform a |
| is_file_read_write | Return a pair of booleans indicating whether the given file is opened for reading and writing, respectively. |
| open | Perform an |
| open_ambient_dir⚠ | Open a directory named by a bare path, using the host process’ ambient authority. |
| open_dir | Open a directory by performing an |
| open_dir_for_reading | Like |
| open_dir_nofollow | Similar to |
| read_base_dir | Like |
| read_dir | Construct a |
| read_link | Perform a |
| remove_dir | Perform a |
| remove_dir_all | Removes a directory and all of its contents. |
| remove_file | Perform a |
| remove_open_dir | Given an open directory handle, delete the directory. |
| remove_open_dir_all | Given an open directory handle, recursively delete the contents of the directory plus the directory itself. |
| rename | Perform a |
| reopen | Re-open an |
| set_permissions | Perform a |
| set_times | Perform a |
| set_times_nofollow | Like |
| stat | Perform an |
| symlink | Perform a |