-
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
Inline Rimraf #300
Inline Rimraf #300
Conversation
This will come first. |
OK, thanks. |
} | ||
|
||
// this one won't happen if graceful-fs is used. | ||
if (er.code === 'EMFILE' && timeout < options.emfileWait) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jprichardson This is a custom handler for EMFILE
errors, only needed if you are using a custom fs
. This brings up a question; when we add custom fs
module support, will we add checks for EMFILE
errors (where possible) across fs-extra
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will we add checks for EMFILE errors (where possible) across fs-extra?
I don't think so, at least not in the short-term.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then I guess I'll remove these checks here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then I guess I'll remove these checks here.
I don't think it hurts to keep them. Whatever is the shortest path and saves you time!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jprichardson I thought I would remove them in interests of a consistent api. If they are left here, remove
will handle EMFILE
errors while the rest of the api won't (when using custom fs
modules).
We aren't using rimraf's glob support, and glob is a rather large dependency. Changes: - Remove glob support from rimraf - Remove move()'s dependency on rimraf; use fs-extra.remove instead - Make rimraf a devDependency; it is used in the tests
@jprichardson Done & rebased. Anything else? What else needs done for v1.0.0? |
Thanks!
I think removing |
We aren't using rimraf's glob support, and glob is a rather large dependency.
Changes:
Original comment:
@jprichardson This is my WIP of inlining rimraf. This needs rebased, do not merge.
rimraf has functionality built in to handle alternate
fs
modules. Currently, there is no way for the end-user to leverage that functionality. I could simplify the code by removing that, however, I don't want to have to add it back. Will we be adding customfs
module support or glob support tofs-extra
first?