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

Update ReadDir to return []os.DirEntry #2

Open
lordofscripts opened this issue Sep 10, 2024 · 0 comments
Open

Update ReadDir to return []os.DirEntry #2

lordofscripts opened this issue Sep 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lordofscripts
Copy link
Owner

Background

In old projects you usually hear "because of history", well, blang/vfs nor its clones are an exception. The original project came to light 9+ years ago, but already in 2021 the ReadDir() operation with an uppercase "D" in Dir came to GO v1.16.

The Problem

VFS and all its clones date earlier than that and they all suffer from the Filesystem.ReadDir() interface function to be non-compliant with the current standard. In VFS Filesystem.ReadDir() returns []os.FileInfo whereas the real os.ReadDir() function returns []os.DirEntry instead.

@lordofscripts lordofscripts added the enhancement New feature or request label Sep 10, 2024
@lordofscripts lordofscripts self-assigned this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant