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
Dir.entries uses C's readdir function internally, and readdir yields both "." and ".." also, so Dir.entries result contains them. In addition, this behavior is same as Ruby's 'Dir.entries'. I think this is intended behavior.
Calling Dir.entries() returns both "." and ".." in the result set, and there is no sort order defined.
This essentially makes one have to call:
Before the results become usable.
Is this intended behavior and/or there's room for improvement?
The text was updated successfully, but these errors were encountered: