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

Add support for withFileTypes in fs.readdir calls. #307

Open
LeifAndersen opened this issue Oct 20, 2020 · 1 comment
Open

Add support for withFileTypes in fs.readdir calls. #307

LeifAndersen opened this issue Oct 20, 2020 · 1 comment
Milestone

Comments

@LeifAndersen
Copy link

LeifAndersen commented Oct 20, 2020

As I understand it, node v10 added withFileTypes for the options field in fs.readdir and fs.readdirSync. This returns file metadata along with file types.

https://nodejs.org/api/fs.html#fs_fs_readdir_path_options_callback

It seems like BrowserFS currently doesn't have this:

> var fs = BFSRequire("fs")
> configure({fs: "LocalStorage"}, () => {console.log("Done")})
Done
> fs.readdirSync("/")
["test.txt"]
> fs.readdirSync("/", {withFileTypes: true})
["test.txt"]
@james-pre james-pre changed the title Add suppoert for withFileTypes in fs.readdir calls. Add support for withFileTypes in fs.readdir calls. Mar 9, 2023
@james-pre james-pre added this to the 2.0 milestone Sep 15, 2023
@james-pre
Copy link
Collaborator

Please use zen-fs/core#19

@james-pre james-pre closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
Repository owner locked and limited conversation to collaborators Oct 25, 2023
@james-pre james-pre reopened this May 17, 2024
Repository owner unlocked this conversation May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants