chanzuckerberg / czid-web

Infectious Disease Sequencing Platform
https://czid.org/
MIT License
79 stars 24 forks source link

[IDSEQ-2456] CURL Download option overwrites files with same name #3358

Closed valenzuelaomar closed 4 years ago

valenzuelaomar commented 4 years ago

Description

Added the bulk_download ID to the tar.gz to prevent overwriting on conflicting files with same name – although overwriting of the same file with the same name + id will happen.

update: replaced the id with a timestamp

Notes

I have searched through CURL's & tar's manuals and there's no functionality of incremental rename of files. One way to achieve the incremental rename of files would be to create a bash script (that each user would need to have).

Tests

  1. Go to downloads
  2. Open details of file of these files
  3. Select Advanced download and copy the URL
  4. Open a terminal and paste the CURL pipeline
  5. Perform steps 1-4 for a different download with the same file name that you just downloaded