Module arceos_api::fs
source · Expand description
Filesystem manipulation operations.
Structs
- A handle to an opened directory.
- AxDisk
fs
andmyfs
A disk device with a cursor. - A handle to an opened file.
- Options and flags which can be used to configure how a file is opened.
Enums
- Enumeration of possible methods to seek within an I/O object.
Traits
- MyFileSystemIf
fs
andmyfs
The interface to define custom filesystems in user apps.
Functions
- Creates a new, empty directory at the provided path.
- Returns the current working directory.
- Returns attributes of the file.
- Flushes the file, writes all buffered data to the underlying device.
- Opens a directory at the path relative to the current directory with the options specified by
opts
. - Opens a file at the path relative to the current directory with the options specified by
opts
. - Reads directory entries starts from the current position into the given buffer, returns the number of entries read.
- Reads the file at the current position, returns the number of bytes read.
- Reads the file at the given position, returns the number of bytes read.
- Removes an empty directory.
- Removes a file from the filesystem.
- Rename a file or directory to a new name.
- Sets the cursor of the file to the specified offset. Returns the new position after the seek.
- Changes the current working directory to the specified path.
- Truncates the file to the specified size.
- Writes the file at the current position, returns the number of bytes written.
- Writes the file at the given position, returns the number of bytes written.
Type Aliases
- Alias of
axfs_vfs::VfsDirEntry
. - Alias of
axfs_vfs::VfsNodeAttr
. - Alias of
axfs_vfs::VfsNodePerm
. - Alias of
axfs_vfs::VfsNodeType
.