Fix diveToFile with open Dir object (#19539)

* Fix CardReader diveToFile
* Add CardReader::fileExists
This commit is contained in:
Scott Lahteine
2020-09-28 15:46:12 -05:00
committed by GitHub
parent 4424645e04
commit 6d4c82f4d8
2 changed files with 46 additions and 23 deletions

View File

@@ -99,6 +99,7 @@ public:
static void openFileRead(char * const path, const uint8_t subcall=0);
static void openFileWrite(char * const path);
static void closefile(const bool store_location=false);
static bool fileExists(const char * const name);
static void removeFile(const char * const name);
static inline char* longest_filename() { return longFilename[0] ? longFilename : filename; }