Module fs

Module fs 

Source
Available on crate feature fs only.
Expand description

Provides access to the file system.

Modules§

file
A handle to an opened file.

Structs§

NSTDFileMetadata
Represents file metadata.

Enums§

NSTDFileType
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§

NSTDFileMetadataResult
A result type returned from nstd_fs_metadata.