File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -71,18 +71,23 @@ class SDClass {
71
71
// write, etc). Returns a File object for interacting with the file.
72
72
// Note that currently only one file can be open at a time.
73
73
File open (const char *filename, uint8_t mode = FILE_READ);
74
+ File open (const String &filename, uint8_t mode = FILE_READ) { return open ( filename.c_str (), mode ); }
74
75
75
76
// Methods to determine if the requested file path exists.
76
77
boolean exists (char *filepath);
78
+ boolean exists (const String &filepath) { return exists (filepath.c_str ()); }
77
79
78
80
// Create the requested directory heirarchy--if intermediate directories
79
81
// do not exist they will be created.
80
82
boolean mkdir (char *filepath);
83
+ boolean mkdir (const String &filepath) { return mkdir (filepath.c_str ()); }
81
84
82
85
// Delete the file.
83
86
boolean remove (char *filepath);
87
+ boolean remove (const String &filepath) { return remove (filepath.c_str ()); }
84
88
85
89
boolean rmdir (char *filepath);
90
+ boolean rmdir (const String &filepath) { return rmdir (filepath.c_str ()); }
86
91
87
92
private:
88
93
You can’t perform that action at this time.
0 commit comments