GET command does not work

Advertisement

Zapp3000
Guest

GET command does not work

Hi, can someone please please help me with a stupid problem. The GET command does not work - either in a batch file or on the command line. Instead of downloading the file WiFi.txt WinSCP 5.13.6 creates a folder named WiFi.txt
Here is the display. The filename and foldername are correct, otherwise there is a specific error.

winscp> ls
D---------   0                           0              ..
-rwxrwxrwx   0 ftp      ftp            893 Dec 12 20:12 wifi.txt

winscp> get -transfer=binary wifi.txt c:\users\a\
wifi.txt                  |            0 B |    0,0 KB/s | binary |   0%

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,505
Location:
Prague, Czechia

Re: GET command does not work

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Zapp3000
Guest

Re: GET command does not work

Here is the attachment.
I additionally want to mention: when i use wildcards instead of the filename the GET command works.
  • log.txt (9.38 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,505
Location:
Prague, Czechia

Re: GET command does not work

WinSCP tries to change working directory to /USB01/wifi.txt to detect if wifi.txt is a file or a folder. Your server allows changing working directory to /USB01/wifi.txt, so WinSCP rightfully believes that the entry is indeed a folder.

You can try to workaround this by using a filemask, like /USB01/[w]ifi.txt. This way, WinSCP will retrieve a directory listing of /USB01, looking for a file matching [w]ifi.txt mask. Hopefully the listing will correctly present wifi.txt as a file.

Reply with quote

Guest

Hi,
thanks for the workaround. You make a great service for WinSCP. I wonder why the problem is new because i use the FTP server of Fritzbox which is a pretty popular router.
Greetings… Zapp

Reply with quote

Advertisement

You can post new topics in this forum