We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4f6ffe commit 0a425cbCopy full SHA for 0a425cb
2 files changed
ArduinoCore-Linux/libraries/SD.h
@@ -179,6 +179,17 @@ class File : public Stream {
179
180
const char *name() { return filename.c_str(); }
181
182
+ void rewindDirectory() {
183
+ if (!is_dir) return;
184
+#ifdef USE_FILESYSTEM
185
+ try {
186
+ iterator = std::filesystem::directory_iterator(dir_path);
187
+ } catch (...) {
188
+ // Handle errors silently
189
+ }
190
+#endif
191
192
+
193
protected:
194
std::fstream file;
195
size_t size_bytes = 0;
ArduinoCore-Linux/libraries/SdFat.h
@@ -74,6 +74,7 @@ class SdFat {
74
struct stat info;
75
return stat(name, &info) == 0;
76
}
77
+ void end(){}
78
};
79
/**
80
* @brief C++ std based emulatoion ofr SdFile
0 commit comments