You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I'm not sure if this could become a problem when clonefile is not supported, or when the copy operation is cross-device, and we still fall back to copyFile.
I'm happy to create a PR with the patch above, but would like confirmation first that this would indeed be the correct approach.
The text was updated successfully, but these errors were encountered:
Maybe a more conservative approach to only remove the target when clonefile() returns EEXIST is safer (but adds an early success-return in the middle of the code):
This breaks the expected
copyFile
semantics, which should truncate an existing file instead of throwing an error.We could pro-actively remove the target:
But I'm not sure if this could become a problem when
clonefile
is not supported, or when the copy operation is cross-device, and we still fall back tocopyFile
.I'm happy to create a PR with the patch above, but would like confirmation first that this would indeed be the correct approach.
The text was updated successfully, but these errors were encountered: