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
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?
The text was updated successfully, but these errors were encountered:
On Fri, 12 Jul 2024, 22:12 Deijin, ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#273>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALBBLZCCHWH4O3QPLC5TX3ZMBBFLAVCNFSM6AAAAABKZSZYHGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDMMZVGM4DSNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
The function for this in wren_cli does not have dots. Neither do any apis in other programming languages I know of. I can't think of a situation where you wouldn't need to filter them out to get what you want.
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?
The text was updated successfully, but these errors were encountered: