-
Notifications
You must be signed in to change notification settings - Fork 772
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
handle copying between identical files #198
Comments
Thanks for your interest. These are great suggestions. Would you be willing to look at the Thank you! |
OK. I will try to find some time to implement this feature. |
I think if you start with just one, that'd be a big win. You could pick the one that is the most important to you and we could start with that? |
Fixed in 5.0.0 🎉 |
fixes bug where identical files were being erased
I hope this module can be as clever as
cp
. It should recognize copying between identical files and do nothing.Now, v0.26.2, neither
copy
norcopySync
can handle these cases correctly.src
anddst
are the same filesrc
is symbolic link and points todst
clobber
istrue
, so thatdst
will be removed, which means the real file is removed. Ifclobber
isfalse
, the file becomes empty.dst
is symbolic link and points tosrc
dst
is removed and a new file is created, then the link is not existed any more. Or the file becomes empty.I have added corresponding test cases in my branch.
The text was updated successfully, but these errors were encountered: