Open jafin opened 1 year ago
It's working as intended, but we could maybe add another flag to not throw when the file already exists. For example, inspired by rsync
:
--ignore-existing skip updating files that already exist on receiver
I am interested in adding such functionality, but i'm uncertain where it should go after seeing the dependency chain: cpy-cli
> cpy
> copy-file
.
Platform
When I execute
it returns the error
Issuing the command without --no-overwrite works fine (but the file is overwritten)
Expected
when setting the
--no-overwrite
parameter it should continue without error even if the file exists.My Misunderstanding of purpose?
I found the test for cpy, it appears it is expected that overwrite:false will throw an exception? If so is there any way to 'skip/ignore' existing files similar to how the non async approach appears to work?
EDIT: reading cp-file code, if I understand async copy overwrite false will throw an exception, but sync copy overwrite will not. If that is correct, then this was just a misunderstanding, please close the issue.