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