1
0
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:
Costin Stroie
2020-12-14 17:14:50 +02:00
committed by GitHub
parent 1e016a4237
commit 9a36cfdee9

View File

@ -68,6 +68,14 @@ public:
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) {
return (boolean)SDFS.mkdir(filepath);
}