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

Duck CLI can't find a folder when I tell it to download but will list its contents and download individual files when speciefied #10386

Closed
cyberduck opened this issue Jul 4, 2018 · 3 comments
Labels
bug cli Command Line Interface fixed

Comments

@cyberduck
Copy link
Collaborator

41e533b created the issue

I'm trying to download all the files in a directory on a local FTP server, but when I enter:

duck --username <name> --password <pass> --download ftp://192.168.0.2/usr/local/root/http/ ~\test\ -y

It returns: File not found. /usr/local/root/http. Please contact your web hosting service provider for assistance.

If I enter:

duck --username <name> --password <pass> --download ftp://192.168.0.2/usr/local/root/http/template.xml ~\test\ -y

It puts the file in the folder I specified

If I enter:

duck --username <name> --password <pass> --list ftp://192.168.0.2/usr/local/root/http/ -y

it shows me all the files in the directory

Is there something stupidly obvious I'm doing wrong?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Please try using a glob pattern.

duck --username <name> --password <pass> --download ftp://192.168.0.2/usr/local/root/http/* ~\test\ -y

@cyberduck
Copy link
Collaborator Author

41e533b commented

Replying to [comment:2 dkocher]:

Please try using a glob pattern.

duck --username <name> --password <pass> --download ftp://192.168.0.2/usr/local/root/http/* ~\test\ -y

Still no luck. Also already tried *.log (most of the files in the directory are of that type and that fails too.).

PS C:\Windows\system32> duck --username guest --password fguest --download ftp://192.168.0.2/usr/local/root/http/* ~\test\ -y --verbose -e overwrite

http…
Resolving 192.168.0.2…
Opening FTP connection to 192.168.0.2…
FTP connection opened…
Password will be sent in plaintext. Please contact your web hosting service provider for assistance.
Authenticating as guest…
Login successful…
Prepare http (Overwrite)…
Prepare http (Overwrite)…
> STAT /usr/local/root
< 211- status of /usr/local/root:
total 60
lrwxrwxrwx   1 root     root           17 Jul  5 13:14 admin -> flash/http/admin/
-rw-rw----   1 httpadmi httpadmi        7 May 23 22:18 apps_release
-rwxr-xr-x   1 root     root        22088 May 24 00:25 cbgtagfilt
drwxr-xr-x   1 httpadmi httpadmi     2760 May 24 08:56 config
drwxr-xr-x   1 root     root           48 Jun 25 00:00 defadmin
-rw-r--r--   1 root     root         3493 Jul  5 05:35 defindex.html
drwxr-xr-x   1 root     root          148 Jul  5 05:35 defindex_img
-rw-r--r--   1 root     root         1029 Jul  5 00:29 deftemplate.xml
drwxr-xr-x   1 root     root            0 Jan  1  1970 flash
lrwxrwxrwx   1 root     root           10 Jun 29 00:00 http -> flash/http
-rw-r--r--   1 httpadmi httpadmi      364 Jan  1  1970 index.html
-rwxr-xr-x   1 root     root        26776 Jan  1  1970 pcotagfilt
lrwxrwxrwx   1 root     root           14 Jan  1  1970 usr-cgi -> flash/usr-cgi/
211 End of Status
> CWD /usr/local/root/admin
< 250 CWD command successful.
> CWD /usr/local/root/http
< 250 CWD command successful.
> CWD /usr/local/root/usr-cgi
< 250 CWD command successful.
Transfer incomplete…
File not found. /usr/local/root/http. Please contact your web hosting service provider for assistance.

> QUIT
< 221 Goodbye.

@cyberduck
Copy link
Collaborator Author

41e533b commented

Fixed it. For some reason the address required to download is /usr/local/root/flash/http/ even though duck can list the files at /usr/local/root/http/

No idea what's going on, but at least it works.

@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 fixed
Projects
None yet
Development

No branches or pull requests

1 participant