Fixes/implements BIOINF-1425 wherein we delete the destination file on DNAnexus during a posix to dx copy function
Background
Currently, the 'delete existing dest file if it already exists' functionality happens only on DX to DX stor.copy, and during stor.open. It does not happen for stor.copy on posix to dx paths. This needed to be fixed.
Changes
Added check in utils.py (utils.copy) to remove dest file if it already exists
Changed DXPath.upload to only print out a skip message if any of the provided files already exist on dnanexus platform.
Added tests for upload and re-recorded posix_to_dx copy cassettes
Tested via:
The unit and integration test suite was run successfully
@jtratner @pkaleta
Fixes/implements BIOINF-1425 wherein we delete the destination file on DNAnexus during a posix to dx copy function
Background
Currently, the 'delete existing dest file if it already exists' functionality happens only on DX to DX stor.copy, and during stor.open. It does not happen for stor.copy on posix to dx paths. This needed to be fixed.
Changes
Tested via: