Expand description
Aldaron’s Device Interface - Storage (adi_storage) is a Rust library for interfacing with a persistent storage device (ie: hard drive, solid state drive, sd card, flash drive, etc.).
Macros§
Structs§
- Storage
- A persistent storage device.
Enums§
- Path
Type - Whether a path is a file or a folder.
Functions§
- copy
- Duplicate a file.
- get_
exists - Returns true only if
filepathexists. - get_
permissions - Get the permissions of a file.
- load
- Load a file.
- mkdir
- Make a folder.
- mv
- Move or rename a file ( change it’s path ).
- path_
type - Get the type of file at
path, orNoneif there is no file atpath. - rm
- Delete a file.
- rmdir
- Delete a folder and all of it’s contents ( use carefully ).
- save
- Save a file.
- set_
permissions - Set the permissions of a file.