Cyberduck Mountain Duck CLI

#8722 closed defect (invalid)

How to download subfolder and contents and overwrite existing

Reported by: flyingL123 Owned by:
Priority: normal Milestone:
Component: cli Version: 4.6.2
Severity: normal Keywords:
Cc: Architecture:
Platform: Mac OS X 10.10

Description (last modified by dkocher)

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


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


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

duck -u [USERNAME] -p [PASSWORD] --download davs:// 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:// 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.

Change History (3)

comment:1 Changed on Apr 2, 2015 at 3:51:56 AM by flyingL123

  • Description modified (diff)

comment:2 Changed on Apr 2, 2015 at 1:40:00 PM by flyingL123

  • Resolution set to invalid
  • Status changed from new to closed

comment:3 Changed on Apr 2, 2015 at 1:47:21 PM by dkocher

  • Description modified (diff)
Note: See TracTickets for help on using tickets.