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

Kamaki hangs while recursively downloading a directory ending in a slash #30

Closed
Erethon opened this issue Jun 23, 2014 · 1 comment
Closed

Comments

@Erethon
Copy link
Contributor

Erethon commented Jun 23, 2014

It's possible to recursively download a directory using the -r flag, e.g.:

d@C:/tmp/mple$ kamaki file download /Test/demo -r
Create local directory demo
/Test/demo/foo --> demo/foo
  download                |████████████████████████████████| 100% - 0s

Unfortunately, if a slash is added at the end of the path name, kamaki crashes.

d@C:/tmp/mple$ kamaki file download /Test/demo/ -r
Failed to access a local file
|  Check if the file exists. Also check if the remote
|  directories exist. All directories in a remote path
|  must exist to succesfully download a container or a
|  directory.
|  To create a remote directory:
|    [kamaki] file mkdir REMOTE_DIRECTORY_PATH
|  [Errno 13] Permission denied: u'//foo'

This was observed in the latest Kamaki (5ede47b2e00c5bdd0916f57c704f2db27095fe2d) from the develop branch.

@Erethon Erethon changed the title Kamaki hangs while recursively downloading a directory ending in "/" Kamaki hangs while recursively downloading a directory ending in a backslash Jun 23, 2014
@Erethon Erethon changed the title Kamaki hangs while recursively downloading a directory ending in a backslash Kamaki hangs while recursively downloading a directory ending in a slash Jun 23, 2014
@saxtouri
Copy link
Contributor

Looks like a bug, thank you @Erethon for finding it before it could make its way to production

saxtouri added a commit to saxtouri/kamaki that referenced this issue Jul 3, 2014
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

2 participants