You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue with both the SD_Test and ReadWrite examples. Their tests (create a file, delete, etc) all work except for their listDir and printDirectory subs that, like in the ListFiles example, do not output anything (no file or dir detected).
The problem happens on: File root = DEV.open("/");
Which always returns 'empty' (false). So openNextFile does not work, no files are returned.
Instead of "/" for root I also tried "", "//", "0", "0:", "0:/", "0://", "root", etc. Unsuccesfully.
However, if a TESTDIR directory exists, DEV.open("/TESTDIR") works and returns true, and openNextFile properly returns files.
Looks like a library issue with .open("/")
--> How can the list of files in root be retrieved on a WIO terminal ?
Setup: WIO Terminal, FAT32 16GB card, Arduino IDE 2.2.1, Seeed SAMD Board library 1.8.5, Windows 10
The text was updated successfully, but these errors were encountered:
RaphTronic
changed the title
ListFiles example does not work on WIO (ReadWrite & SD_Test do)
ListFiles example does not work on WIO: no directory or file seen
Mar 17, 2024
RaphTronic
changed the title
ListFiles example does not work on WIO: no directory or file seen
ListFiles code's .open("/") does not work on root, no dir or file seen
Mar 19, 2024
The ListFiles example in this library does not show any file in the root directory despite a handful of .txt and .pdf files being present.
The output is simply:
13:28:36.861 -> Initializing SD card...
13:28:36.900 -> initialization done.
13:28:36.900 -> - - - - - - - - - - - - - - - - - - - - - - - - -
13:28:36.900 -> done!
Same issue with both the SD_Test and ReadWrite examples. Their tests (create a file, delete, etc) all work except for their listDir and printDirectory subs that, like in the ListFiles example, do not output anything (no file or dir detected).
The problem happens on: File root = DEV.open("/");
Which always returns 'empty' (false). So openNextFile does not work, no files are returned.
Instead of "/" for root I also tried "", "//", "0", "0:", "0:/", "0://", "root", etc. Unsuccesfully.
However, if a TESTDIR directory exists, DEV.open("/TESTDIR") works and returns true, and openNextFile properly returns files.
Looks like a library issue with .open("/")
--> How can the list of files in root be retrieved on a WIO terminal ?
Setup: WIO Terminal, FAT32 16GB card, Arduino IDE 2.2.1, Seeed SAMD Board library 1.8.5, Windows 10
Note: a similar issue is posted on seeed's forum as well: https://forum.seeedstudio.com/t/on-wio-terminal-i-am-unable-to-open-the-root-directory-on-an-sd-card/275254/3 .
The text was updated successfully, but these errors were encountered: