Crate adi_storage [] [src]

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

file_save

Save a file.

storage

Storage

Structs

Storage

A persistent storage device.

Enums

PathType

Whether a path is a file or a folder.

Functions

copy

Duplicate a file.

get_exists

Returns true only if filepath exists.

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, or None if there is no file at path.

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.