-
Notifications
You must be signed in to change notification settings - Fork 773
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
move / moveFile API #10
Comments
This won't be hard to do, I can put this in the next release. |
Sweet! Ideally it would try fs.rename first, because that's blazingly fast, but that doesn't work if you're trying to move a file across filesystem boundaries. So you would have to catch that error and then do the input stream / output stream piping technique. Can I make you a pull request? |
Ya, sure, that would be helpful. Just don't bump the version number. |
Just a heads up, I decided not to make a pull request to node-fs-extra because I decided that I'm going to simply require rimraf, ncp, mkdirp, etc directly when I need them. Here's an implementation of moveFile though if you want it: https://github.com/superjoe30/node-mv |
Fair enough. Thanks for the heads up. |
Done in Thanks for your work on this. |
this module should also have move / moveFile API
The text was updated successfully, but these errors were encountered: