SPIFFS
SPIFFS ( -- )
Select SPIFFS
vocabulary:
SPIFFS.begin SPIFFS.end SPIFFS.format SPIFFS.totalBytes SPIFFS.usedBytes
SPIFFS.begin ( n2 c1 n0 -- fl )
This word mounts the SPIFFS file system and should be called before that any other FS method is not used. Returns true if the file system was mounted successfully.
-1 z" /spiffs" 10 SPIFFS.begin drop
SPIFFS.end ( -- )
Unmounts the filesystem.
SPIFFS.format ( -- fl )
Format the file system. Returns true if formatting was successful. Warning, if files are present in the memory zone, they will be deleted in a irreversible.
Returns as output a Boolean value indicating if the procedure was successful (true) or failed (false).
SPIFFS.format \ take many seconds SPIFFS.usedBytes . \ display 0 SPIFFS.totalBytes . \ display 1860161
SPIFFS.totalBytes ( -- n )
Returns the total number of bytes used by the SPIFFS file system.
SPIFFS.usedBytes ( -- n )
Returns the space used by the specified file in bytes.