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

How to download subfolder and contents and overwrite existing #8722

Closed
cyberduck opened this issue Apr 2, 2015 · 0 comments
Closed

How to download subfolder and contents and overwrite existing #8722

cyberduck opened this issue Apr 2, 2015 · 0 comments
Labels
bug cli Command Line Interface invalid

Comments

@cyberduck
Copy link
Collaborator

50ed621 created the issue

I'm trying to download an entire directory from a webdav server. The folder is located at:

davs://www.example.com/dav/content/js

I want to download this folder and it's contents to the following directory on my local computer:

/local/content/js

Therefore, I cd into the /local directory, and run the following command:

duck -u [USERNAME] -p [PASSWORD] --download davs://www.example.com/dav/content/js/ content/js/ --existing overwrite

This works as expected. Then, if I run the same exact command again, to download the directory again, instead of overwriting the existing /local/content/js directory with the new content, it creates a new js directory within the existing one, leaving me with /local/content/js/js.

If I do the same thing with a top level directory, the content is overwritten as expected. For example running this command twice:

duck -u [USERNAME] -p [PASSWORD] --download davs://www.example.com/dav/content/ content/ --existing overwrite

Will result in the content/ directory being recreated and overwritten with the new files rather than creating it as a subdirectory as demonstrated above.

Is this a bug or am I doing something wrong here? Thank you very much for any help you can provide.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cli Command Line Interface invalid
Projects
None yet
Development

No branches or pull requests

1 participant