hello all ![]()
Is there a way to find hidden files on SD cards?
I have a function in my code that deletes the hidden files created by MacOS system on SD cards. If I got it right, it worked fine with an older version of SdFile library, but now I lost that version and the code doesn't run anymore.
here is the code, nested in a openNext routine:
#include <SdFat.h>
SdFat sd;
SdFile file;
...
while (file.openNext(sd.vwd(), O_READ | O_WRITE)) {
file.getFilename(thisFilename);
if (!file.isHidden()) {
numMP3files++;
}
} else {
if (!file.remove()) {
// <---- remove the file
}
}
file.close();
}
but I get the error
'class SdFile' has no member named 'isHidden'
Is there a way to way round this? (needless to say the old version of the library is lost forever, at least for me)
I looked around in the forum and on internet for a solution but did not succeed. Sorry of I missed something
Thank you soooo much for your help and your time
Antonio