Available on crate feature
fs only.Expand description
Provides access to the file system.
Modules§
- file
- A handle to an opened file.
Structs§
- NSTD
File Metadata - Represents file metadata.
Enums§
- NSTD
File Type - Describes the type of a file.
Constants§
- NSTD_
FILE_ PERMISSION_ READ - A bit flag describing a file with read access.
Functions§
- nstd_
fs_ ⚠absolute - Returns the absolute path of a file system item.
- nstd_
fs_ ⚠copy - Copies the contents and permissions of one file to another.
- nstd_
fs_ ⚠create_ dir - Creates a new directory on the file system.
- nstd_
fs_ ⚠create_ dirs - Recursively creates new directories on the file system.
- nstd_
fs_ ⚠create_ file - Creates a new file on the file system.
- nstd_
fs_ ⚠metadata - Retrieves metadata about a file pointed to by
path. - nstd_
fs_ ⚠read - Reads the contents of a file.
- nstd_
fs_ ⚠read_ to_ string - Reads the contents of a file into a UTF-8 string.
- nstd_
fs_ ⚠remove_ dir - Removes a directory from the file system.
- nstd_
fs_ ⚠remove_ dirs - Recursively removes directories on the file system.
- nstd_
fs_ ⚠remove_ file - Removes a file from the file system.
- nstd_
fs_ ⚠rename - Renames a file or directory, replacing the destination if it already exists.
- nstd_
fs_ ⚠write - Overwrites the contents of a file.
Type Aliases§
- NSTD
File Metadata Result - A result type returned from
nstd_fs_metadata.