Expand description
Filesystem manipulation operations.
Structs§
- AxDir
Handle fs - A handle to an opened directory.
 - AxDisk
fsandmyfs - A disk device with a cursor.
 - AxFile
Handle fs - A handle to an opened file.
 - AxOpen
Options fs - Options and flags which can be used to configure how a file is opened.
 
Enums§
- AxSeek
From fs - Enumeration of possible methods to seek within an I/O object.
 
Traits§
- MyFile
System If fsandmyfs - The interface to define custom filesystems in user apps.
 
Functions§
- ax_
create_ dir fs - Creates a new, empty directory at the provided path.
 - ax_
current_ dir fs - Returns the current working directory.
 - ax_
file_ attr fs - Returns attributes of the file.
 - ax_
flush_ file fs - Flushes the file, writes all buffered data to the underlying device.
 - ax_
open_ dir fs - Opens a directory at the path relative to the current directory with
the options specified by 
opts. - ax_
open_ file fs - Opens a file at the path relative to the current directory with the
options specified by 
opts. - ax_
read_ dir fs - Reads directory entries starts from the current position into the given buffer, returns the number of entries read.
 - ax_
read_ file fs - Reads the file at the current position, returns the number of bytes read.
 - ax_
read_ file_ at fs - Reads the file at the given position, returns the number of bytes read.
 - ax_
remove_ dir fs - Removes an empty directory.
 - ax_
remove_ file fs - Removes a file from the filesystem.
 - ax_
rename fs - Rename a file or directory to a new name.
 - ax_
seek_ file fs - Sets the cursor of the file to the specified offset. Returns the new position after the seek.
 - ax_
set_ current_ dir fs - Changes the current working directory to the specified path.
 - ax_
truncate_ file fs - Truncates the file to the specified size.
 - ax_
write_ file fs - Writes the file at the current position, returns the number of bytes written.
 - ax_
write_ file_ at fs - Writes the file at the given position, returns the number of bytes written.
 
Type Aliases§
- AxDir
Entry fs - Alias of [
axfs_vfs::VfsDirEntry]. - AxFile
Attr fs - Alias of [
axfs_vfs::VfsNodeAttr]. - AxFile
Perm fs - Alias of [
axfs_vfs::VfsNodePerm]. - AxFile
Type fs - Alias of [
axfs_vfs::VfsNodeType].