Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

fs.rmdirSync('/') doesnt work #42

Open
namnm opened this issue Jul 14, 2017 · 2 comments
Open

fs.rmdirSync('/') doesnt work #42

namnm opened this issue Jul 14, 2017 · 2 comments

Comments

@namnm
Copy link

namnm commented Jul 14, 2017

It should remove the whole things, but instead it throws MemoryFileSystemError(errors.code.EPERM, _path)

This can be a small fix to remove everything instead of throw an error.

@TheLarkInn
Copy link
Member

Thank you so much for reporting this! We'd love a PR if you are willing.

@namnm
Copy link
Author

namnm commented Jul 14, 2017

Will make a PR soon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants