Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature request] move / rename function #13

Closed
callumacrae opened this issue Dec 15, 2014 · 2 comments
Closed

[Feature request] move / rename function #13

callumacrae opened this issue Dec 15, 2014 · 2 comments

Comments

@callumacrae
Copy link

A move function would be helpful, and as far as I can see, also pretty easy to write.

I'm not so sure about a rename function—possibly a function which behaves pretty much the same as the move function, but doesn't change the directory?

fs.move('dir/file.js', 'dir/different-name.js'); // dir/different-name.js

fs.rename('dir/file.js', 'different-name.js'); // dir/different-name.js

Could be confusing though. Might be best just to stick to one function.

@SBoudrias
Copy link
Owner

Yeah, let's stick to a single function for now. I'd keep move as that's the terminal way of doing it.

PR welcome!

@blai
Copy link
Collaborator

blai commented Jan 13, 2015

implemented by #17

@blai blai closed this as completed Jan 13, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants