[Cyberduck-trac] [Cyberduck] #8722: How to download subfolder and contents and overwrite existing

Cyberduck trac at trac.cyberduck.io
Thu Apr 2 03:51:57 UTC 2015


#8722: How to download subfolder and contents and overwrite existing
----------------------------+----------------------
 Reporter:  flyingL123      |         Owner:
     Type:  defect          |        Status:  new
 Priority:  normal          |     Milestone:
Component:  cli             |       Version:  4.6.2
 Severity:  normal          |    Resolution:
 Keywords:                  |  Architecture:
 Platform:  Mac OS X 10.10  |
----------------------------+----------------------
Description changed by flyingL123:

Old description:

> 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.
>
> Is this a bug or am I doing something wrong here? Thank you very much for
> any help you can provide.

New description:

 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.

--

-- 
Ticket URL: <https://trac.cyberduck.io/ticket/8722#comment:1>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows


More information about the Cyberduck-trac mailing list