Module firefly_rust::data
source · Expand description
Functions for accessing files in the app data dir.
Each app has an its own data dir. That directory is empty by default, writable by the app, and not accessible by other apps. Typically, it is used to store game save data.
The device owner may empty this dir if they wish to remove the app data.
Functions§
- Write the buffer into the given file in the data dir.
- Get a file size in the data dir.
- Read the whole file with the given name into the given buffer.
- Read the whole file with the given name from the data dir.
- Remove file (if exists) with the given name from the data dir.