Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ajamthetacc opened this issue Jul 10, 2019 · 0 comments

Comments

@ajamthetacc
Copy link

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')

@ajamthetacc ajamthetacc changed the title files-cp does not support directory copy files-cp does not support recursive files copy when directory is specified in the source Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant