File System manager constructor.
At the moment it needs a MicroPython hex string without files included. Multiple MicroPython images can be provided to generate a Universal Hex.
MicroPython Intel Hex string or an array of Intel Hex strings with their respective board IDs.
Create a new file and add it to the file system.
Name for the file.
File content to write.
Check if a file is already present in the file system.
Name for the file to check.
True if it exists, false otherwise.
Generate a new copy of the MicroPython Intel Hex with the files in the filesystem included.
When multiple MicroPython hex files are provided select one via this argument.
A new string with MicroPython and the filesystem included.
Generate a byte array of the MicroPython and filesystem data.
When multiple MicroPython hex files are provided select one via this argument.
A Uint8Array with MicroPython and the filesystem included.
The remaining storage of the file system in bytes.
The available filesystem total size either calculated by the MicroPython hex or the max storage size limit has been set.
Size of the filesystem in bytes.
The total number of bytes currently used by files in the file system.
Generate a new copy of a MicroPython Universal Hex with the files in the filesystem included.
A new Universal Hex string with MicroPython and filesystem.
Read the files included in a MicroPython Universal or Intel Hex string and add them to this instance.
MicroPython Intel or Universal Hex string with files.
A filename list of added files.
Read the files included in a MicroPython hex string and add them to this instance.
MicroPython hex string with files.
Erase all the previous files before importing. It only erases the files after there are no error during hex file parsing.
Flag to overwrite existing files in this instance.
A filename list of added files.
Read the files included in a MicroPython Universal Hex string and add them to this instance.
MicroPython Universal Hex string with files.
Erase all the previous files before importing. It only erases the files after there are no error during hex file parsing.
Flag to overwrite existing files in this instance.
A filename list of added files.
A list all the files in the file system.
Read the text from a file.
Name of the file to read.
Text from the file.
Read the bytes from a file.
Name of the file to read.
Byte array from the file.
Delete a file from the file system.
Name of the file to delete.
Sets a storage size limit. Must be smaller than available space in MicroPython.
Size in bytes for the filesystem.
Returns the size of a file in bytes.
Name for the file to check.
Size file size in bytes.
Write a file into the file system. Overwrites a previous file with the same name.
Name for the file.
File content to write.
Generated using TypeDoc
Manage filesystem files in one or multiple MicroPython hex files.