-
Notifications
You must be signed in to change notification settings - Fork 774
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
Merge extfs with this repo #213
Comments
It looks like I appreciate your interest though. |
I personally would like to see |
@kruncher With fs-extra v3, you can just do: fs.readdir('dir').then(arr => Promise.all(arr.map(path => fs.pathExists(path))) |
@RyanZim "just" hehe, that seems quite verbose and prone to error. I'd rather just do this: if (fs.isEmptySync(path)) {
console.log("The specified directory is empty!");
} or: fs.isEmpty(path).then(isEmpty => {
if (isEmpty) {
console.log("The specified directory is empty!");
}
}); |
You can open a new issue requesting this for reconsideration, can't promise anything. Locking to prevent further noise on this old thread. |
Hi,
Great work on this module, it really makes file/folder manipulation a lot easier.
I found myself having to check the existence of folders quite a lot, and I found the extfs module (https://github.com/marian2js/npm-extfs) perfect for this, but this module and extfs are kind of serving the same purposes, they even have common methods.
So I was wondering if you guys would like to merge (or to accept a PR that merges) extfs with fs-extra, especially as extfs looks like it's no longer maintained (it might not need to though).
Thank you,
Alvin
The text was updated successfully, but these errors were encountered: