Timeline for SdFat Library what is dir_t*?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 14, 2017 at 21:23 | vote | accept | ATE-ENGE | ||
Jul 14, 2017 at 21:17 | comment | added | Majenko | In most filesystems a directory contains two special files ".", which is the current directory, and ".." which is the parent directory. If you want to go up the tree you have to get the ".." directory entry and open that as a directory. There's nothing like that for a file though, only directories. You can start here for FAT information: en.wikipedia.org/wiki/File_Allocation_Table | |
Jul 14, 2017 at 21:14 | comment | added | ATE-ENGE |
Oh, then I have a misunderstanding in regards to how FAT files work. Is there a good resource I can use to learn more about FAT? How would I go up a directory in a tree? Would it be as easy as saying BrowseFile.open([&directory],"..",O_READ ?
|
|
Jul 14, 2017 at 21:10 | comment | added | Majenko |
Well, .dirEntry() gets the entry in the directory for the file, not the directory the file is in. FAT has no way of going "up" from a file. In fact I am not aware of any filesystem that has the concept of "up" - even going up a directory in a tree is actually going down into the directory called ".."
|
|
Jul 14, 2017 at 21:08 | comment | added | ATE-ENGE |
Thank you, that seems to be the correct format. Unfortunately, it returns information on File1.txt and not Folder1 which makes it less useful. Also, a link to the API is now in the question
|
|
Jul 14, 2017 at 20:57 | history | answered | Majenko | CC BY-SA 3.0 |