Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListFiles code's .open("/") does not work on root, no dir or file seen #14

Open
RaphTronic opened this issue Mar 17, 2024 · 0 comments
Open
Assignees
Labels
Seeed_Arduino_FS Label for Seeed_Arduino_FS UAY Unassigned yet

Comments

@RaphTronic
Copy link

RaphTronic commented Mar 17, 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 .

@RaphTronic 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 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
@MatthewJeffson MatthewJeffson added UAY Unassigned yet Seeed_Arduino_FS Label for Seeed_Arduino_FS labels Oct 9, 2024
@Lesords Lesords self-assigned this Oct 14, 2024
@Lesords Lesords assigned bigbearishappy and LynnL4 and unassigned Lesords Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Seeed_Arduino_FS Label for Seeed_Arduino_FS UAY Unassigned yet
Projects
Status: Todo
Development

No branches or pull requests

5 participants