Open LeifAndersen opened 3 years ago
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.
withFileTypes
fs.readdir
fs.readdirSync
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"]
Please use https://github.com/browser-fs/core/issues/19
As I understand it, node v10 added
withFileTypes
for the options field infs.readdir
andfs.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: