mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-20 10:24:18 +03:00
Add the missing 'rename' method wrapper in SD library. (#7766)
This commit is contained in:
@ -68,6 +68,14 @@ public:
|
|||||||
return (boolean)SDFS.exists(filepath.c_str());
|
return (boolean)SDFS.exists(filepath.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean rename(const char* filepathfrom, const char* filepathto) {
|
||||||
|
return (boolean)SDFS.rename(filepathfrom, filepathto);
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean rename(const String &filepathfrom, const String &filepathto) {
|
||||||
|
return (boolean)rename(filepathfrom.c_str(), filepathto.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
boolean mkdir(const char *filepath) {
|
boolean mkdir(const char *filepath) {
|
||||||
return (boolean)SDFS.mkdir(filepath);
|
return (boolean)SDFS.mkdir(filepath);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user