Skip to content

Commit

Permalink
Add the missing 'rename' method wrapper in SD library. (#7766)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstroie authored Dec 14, 2020
1 parent 1e016a4 commit 9a36cfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/SD/src/SD.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 68,14 @@ class SDClass {
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);
}
Expand Down

0 comments on commit 9a36cfd

Please sign in to comment.