dome icon indicating copy to clipboard operation
dome copied to clipboard

FileSystem listDirectories has unexpected entries

Open Deijin27 opened this issue 7 months ago • 2 comments

When you run FileSystem.listDirectories there is two extra entries in the list "." and ".." This seems to be inherent to the win32 FindNextFile function called by tinydir.

It caught me out because I was writing a function to recursively get files from a directory, and I was getting an infinite loop so the dome window never showed but dome was still running.

I'm thinking these should probably be filtered out and not included in the result of FileSystem.listDirectories. What do you think?

Deijin27 avatar Jul 12 '24 21:07 Deijin27