Skip to content

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

@ajamthetacc

Description

@ajamthetacc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions