24#error "Storage library is NOT supported by SubCore."
43#include <sdk/config.h>
56 boolean _realpath(
char *dest,
const char *src,
size_t n);
63 StorageClass(
const char *str) { strncpy(mountdir, str, 16); };
95 boolean exists(
const char *filepath);
103 boolean exists(
const String &filepath) {
return exists(filepath.c_str()); }
112 boolean mkdir(
const char *filepath);
121 boolean mkdir(
const String &filepath) {
return mkdir(filepath.c_str()); }
137 boolean remove(
const String &filepath) {
return remove(filepath.c_str()); }
146 boolean rmdir(
const char *filepath);
155 boolean rmdir(
const String &filepath) {
return rmdir(filepath.c_str()); }
SPRESENSE Arduino File library.
The File class allows for reading from and writing to individual files on the File System.
Definition: File.h:55
The Storage class provides functions for accessing the storage manipulating its files and directories...
Definition: Storage.h:53
boolean mkdir(const String &filepath)
Create a directory on the Flash.
Definition: Storage.h:121
boolean remove(const char *filepath)
Remove a file from the Flash.
boolean exists(const char *filepath)
Tests whether a file or directory exists on the Flash.
boolean remove(const String &filepath)
Remove a file from the Flash.
Definition: Storage.h:137
boolean exists(const String &filepath)
Tests whether a file or directory exists on the Flash.
Definition: Storage.h:103
File open(const char *filename, uint8_t mode=FILE_READ)
Opens a file on the Flash.
boolean rmdir(const char *filepath)
Remove a directory from the Flash.
File open(const String &filename, uint8_t mode=FILE_READ)
Opens a file on the Flash.
Definition: Storage.h:87
boolean mkdir(const char *filepath)
Create a directory on the Flash.
boolean rmdir(const String &filepath)
Remove a directory from the Flash.
Definition: Storage.h:155
#define FILE_READ
Definition: File.h:47