21 virtual bool begin() {
return true; }
33 const char* path_str = path.c_str();
34 const char* path_str_exanded =
expand(path_str);
35 LOGI(
"open: %s", path_str_exanded);
36 return this->
open(path_str_exanded, mode);
40 return (stat(
expand(path), &buffer) == 0);
42 bool exists(
const std::string& path) {
return exists(path.c_str()); }
43 bool remove(
const char* path) { return ::remove(
expand(path)) == 0; }
44 bool remove(
const std::string& path) {
return remove(path.c_str()); }
45 bool rename(
const char* pathFrom,
const char* pathTo) {
48 bool rename(
const std::string& pathFrom,
const std::string& pathTo) {
49 return rename(pathFrom.c_str(), pathTo.c_str());
51 bool mkdir(
const char* path) { return ::mkdir(
expand(path), 0777) == 0; }
52 bool mkdir(
const std::string& path) {
return mkdir(path.c_str()); }
53 bool rmdir(
const char* path) { return ::rmdir(
expand(path)) == 0; }
54 bool rmdir(
const std::string& path) {
return rmdir(path.c_str()); }
65 const char*
expand(
const char* file) {
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define assert(T)
Definition avr.h:10