We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's possible to read/write files nested inside other files:
const { fs } = require('memfs'); fs.writeFileSync('/foo', 'hello'); fs.writeFileSync('/foo/bar', 'world'); console.log(fs.readFileSync('/foo', 'utf8')); // logs 'hello' console.log(fs.readFileSync('/foo/bar', 'utf8')); // logs 'world' console.log(fs.statSync('/foo').isFile()); // logs 'true' console.log(fs.statSync('/foo').isDirectory()); // logs 'false' console.log(fs.readdirSync('/foo')); // throws ENOTDIR
/foo is a regular file, and bar is also a regular file that's nested in /foo.
/foo
bar
Tested with v4.11.1
The text was updated successfully, but these errors were encountered:
Yup that's a bug alright
Sorry, something went wrong.
Hi @NotWearingPants, I think I may be able to help with this issue. I would love to be assigned to it if possible!
@Kenny4297 go for it!
Fix issue-streamich#1049
a25f7f9
Kenny4297
Successfully merging a pull request may close this issue.
It's possible to read/write files nested inside other files:
/foo
is a regular file, andbar
is also a regular file that's nested in/foo
.Tested with v4.11.1
The text was updated successfully, but these errors were encountered: