Closed kostas-kou closed 4 months ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 10.34483%
with 52 lines
in your changes missing coverage. Please review.
Project coverage is 42.23%. Comparing base (
655a4e7
) to head (67538db
).
Files | Patch % | Lines |
---|---|---|
sda_download/sda_download.go | 10.52% | 50 Missing and 1 partial :warning: |
helpers/helpers.go | 0.00% | 1 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Related issue(s) and PR(s)
This PR closes #401. closes #409.
Description With this PR an enhancement has been implemented in the sda-download where the user can download recursively by providing one or multiple folder paths. A bug is also fixed for downloading files: before is the user was giving an incomplete file path, e.g:
main/folder/dummy_fi
instead ofmain/folder/dummy_file
then the file would be downloaded in the path which was given as incomplete. This PR is fixing this bug and the tool gives an error for incomplete paths.How to test Run the setup.sh script from the root of the repo:
bash .github/integration/setup/setup.sh
Then run the following command for recursive download:./sda-cli sda-download -config testing/s3cmd-download.conf -dataset-id https://doi.example/ty009.sfrrss/600.45asasga -url http://localhost:8080 -outdir download-folder --recursive main/subfolder2
for testing the bug fix run:./sda-cli sda-download -config testing/s3cmd-download.conf -dataset-id https://doi.example/ty009.sfrrss/600.45asasga -url http://localhost:8080 -outdir test-download main/subfolder/dummy_
That should give an error.