Duke-GCB / DukeDSClient

Command line program to allow uploading, downloading, and managing projects in the duke-data-service.
MIT License
5 stars 6 forks source link

User Request: Fine grain control of uploading/downloading #248

Open johnbradley opened 5 years ago

johnbradley commented 5 years ago

... It would be nice, for example to have finer control over where a file should be placed when either uploading to or downloading from dds.

The upload and download commands work from the standpoint of uploading or downloading an entire project. For download there are include and exclude parameters for filtering what is downloaded but it still works for the entire project.

johnbradley commented 5 years ago

One option would be to introduce a copy command similar to the aws s3 cli:

aws s3 cp test.txt s3://mybucket/test2.txt

This functions as both upload and download.

https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html#examples.

Instead of s3 we would need a dds prefix. So something like this:

ddsclient copy test.txt dds://myproject/test2.txt

We currently use this dds prefix to reference files in bespin-cli: https://github.com/Duke-GCB/bespin-cli#user-edits-job-template-file