TACC-Cloud / agave-cli

The Tapis CLI
Other
4 stars 8 forks source link

files-cp does not support recursive files copy when directory is specified in the source #107

Open ajamthetacc opened 5 years ago

ajamthetacc commented 5 years ago

Describe the bug files-cp does not support directory copy

files-cp classifyApp-1.0 agave://cicsvc.pearc19.storage.system/applications/classifyApp-1.0/ Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/agavepy/files/upload.py", line 36, in files_upload (remote_filename, open(file_path, "rb"), "text/plain")} IsADirectoryError: [Errno 21] Is a directory: '/home/ajamthe/applications/classifyApp-1.0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/agave-cli/bin/files-cp", line 83, in agave.files_upload(source, destination) File "/usr/local/lib/python3.6/dist-packages/agavepy/agave.py", line 958, in files_upload files_upload(self.api_server, self.token, source, destination) File "/usr/local/lib/python3.6/dist-packages/agavepy/files/upload.py", line 46, in files_upload raise AgaveFilesError(err) agavepy.files.exceptions.AgaveFilesError: IsADirectoryError(21, 'Is a directory')