8000 Merge branch 'master' into fix-problem-on-win64 · esp8266/Arduino@3f19be7 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 3f19be7

Browse files
Merge branch 'master' into fix-problem-on-win64
2 parents e72c29b + 9a36cfd commit 3f19be7

File tree

1 file changed

+8
-0
lines changed
  • libraries/SD/src

1 file changed

+8
-0
lines changed

libraries/SD/src/SD.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ class SDClass {
6868
return (boolean)SDFS.exists(filepath.c_str());
6969
}
7070

71+
boolean rename(const char* filepathfrom, const char* filepathto) {
72+
return (boolean)SDFS.rename(filepathfrom, filepathto);
73+
}
74+
75+
boolean rename(const String &filepathfrom, const String &filepathto) {
76+
return (boolean)rename(filepathfrom.c_str(), filepathto.c_str());
77+
}
78+
7179
boolean mkdir(const char *filepath) {
7280
return (boolean)SDFS.mkdir(filepath);
7381
}

0 commit comments

Comments
 (0)
0