changes FS for Arduino stage (#17413)

This commit is contained in:
Jason2866 2022-12-16 18:10:57 +01:00 committed by GitHub
parent 72c9bca4d3
commit ebf87bdfc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 5 deletions

View File

@ -175,6 +175,22 @@ public:
return true;
}
#if ESP_ARDUINO_VERSION > ESP_ARDUINO_VERSION_VAL(2, 0, 5)
bool seekDir(long position){
if(!_f){
return false;
}
return _f.seekDir(position);
}
String getNextFileName(void)
{
if (!_f) {
return "";
}
return _f.getNextFileName();
}
#endif
protected:
File _f;
};
@ -285,6 +301,23 @@ public:
return nullptr; // TODO
}
#if ESP_ARDUINO_VERSION > ESP_ARDUINO_VERSION_VAL(2, 0, 5)
bool seekDir(long position){
if(!_f){
return false;
}
return _f.seekDir(position);
}
String getNextFileName(void)
{
if (!_f) {
return "";
}
return _f.getNextFileName();
}
#endif
void rewindDirectory(void) {
// ignore
}