Topic "WinSCP does not see file that is there"

Author Message
rmasonjr

Guest


I am running Winscp 4.2.7 build 758

A simple ftp session from Windows 2003 server works fine:
Code:
C:\utils>ftp 192.168.xxx.xx
Connected to 192.168.xxx.xx.
220 MDVL1500 FTP server (Version 6.00) ready.
User (192.168.xxx.xx:(none)): xxxxxxxx
331- Password required for xxxxxxxx.
331 Login ok.
Password:
230- Logging in with home=/ibsr/primary/standard/
230 User xxxxxxxx logged in from 192.168.xxx.xx.
ftp> cd /ibsr/secondary/standard
250 CWD command successful.
ftp> ls 020001.030001.00772.01.2
200 PORT command successful.
150 Opening ASCII data connection for 'file list'.
020001.030001.00772.01.2
226 Transfer complete
ftp: 26 bytes received in 0.48Seconds 0.05Kbytes/sec.
ftp> bye
221 Goodbye.

C:\utils>


When I attempt to convert this to a WinSCP script, it says the file does not exist although the file exists. I also cannot see the file in the WinSCP program. Here is the script and output:
Code:
open mdvl_nt
cd /ibsr/secondary/standard
ls 020001.030001.00772.01.2
close


here is the command-line I used to start winscp (exe version):
Code:
winscp /console /log=winscp.log /script=poll\mdvl_nt.txt


Code:
. 2010-04-12 21:37:50.924 --------------------------------------------------------------------------
. 2010-04-12 21:37:50.924 WinSCP Version 4.2.7 (Build 758) (OS 5.2.3790 Service Pack 2)
. 2010-04-12 21:37:50.924 Login time: Monday, April 12, 2010 9:37:50 PM
. 2010-04-12 21:37:50.924 --------------------------------------------------------------------------
. 2010-04-12 21:37:50.924 Session name: mdvl_nt
. 2010-04-12 21:37:50.924 Host name: 192.168.xxx.xx (Port: 21)
. 2010-04-12 21:37:50.924 User name: xxxxxxxx (Password: Yes, Key file: No)
. 2010-04-12 21:37:50.924 Tunnel: No
. 2010-04-12 21:37:50.924 Transfer Protocol: FTP
. 2010-04-12 21:37:50.924 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2010-04-12 21:37:50.924 Proxy: none
. 2010-04-12 21:37:50.924 FTP: FTPS: None; Passive: No [Force IP: No]
. 2010-04-12 21:37:50.924 Local directory: C:\Documents and Settings\xxxxxx\My Documents, Remote directory: /ibsr/secondary/standard, Update: Yes, Cache: No
. 2010-04-12 21:37:50.924 Cache directory changes: No, Permanent: Yes
. 2010-04-12 21:37:50.924 DST mode: 1
. 2010-04-12 21:37:50.924 --------------------------------------------------------------------------
. 2010-04-12 21:37:50.924 Connecting to 192.168.xxx.xx ...
. 2010-04-12 21:37:50.940 Connected with 192.168.xxx.xx. Waiting for welcome message...
< 2010-04-12 21:37:50.971 220 MDVL1500 FTP server (Version 6.00) ready.
> 2010-04-12 21:37:50.971 USER xxxxxxxx
< 2010-04-12 21:37:50.971 331- Password required for xxxxxxxx.
< 2010-04-12 21:37:51.127 331 Login ok.
> 2010-04-12 21:37:51.127 PASS ********
< 2010-04-12 21:37:51.127 230- Logging in with home=/ibsr/primary/standard/
< 2010-04-12 21:37:51.346 230 User xxxxxxxx logged in from 192.168.xxx.xx.
> 2010-04-12 21:37:51.346 SYST
< 2010-04-12 21:37:51.346 215 UNIX Type: L8
> 2010-04-12 21:37:51.346 FEAT
< 2010-04-12 21:37:51.346 500 'FEAT': command not understood.
. 2010-04-12 21:37:51.346 Connected
. 2010-04-12 21:37:51.346 --------------------------------------------------------------------------
. 2010-04-12 21:37:51.346 Using FTP protocol.
. 2010-04-12 21:37:51.346 Doing startup conversation with host.
> 2010-04-12 21:37:51.346 PWD
< 2010-04-12 21:37:51.346 257 "/ibsr/primary/standard/" is current directory.
. 2010-04-12 21:37:51.362 Changing directory to "/ibsr/secondary/standard".
> 2010-04-12 21:37:51.362 CWD /ibsr/secondary/standard
< 2010-04-12 21:37:51.362 250 CWD command successful.
. 2010-04-12 21:37:51.362 Getting current directory name.
> 2010-04-12 21:37:51.362 PWD
< 2010-04-12 21:37:51.362 257 "/ibsr/secondary/standard" is current directory.
. 2010-04-12 21:37:51.362 Startup conversation with host finished.
. 2010-04-12 21:37:51.362 Changing directory to "/ibsr/secondary/standard".
> 2010-04-12 21:37:51.362 CWD /ibsr/secondary/standard
< 2010-04-12 21:37:51.377 250 CWD command successful.
. 2010-04-12 21:37:51.377 Getting current directory name.
> 2010-04-12 21:37:51.377 PWD
< 2010-04-12 21:37:51.377 257 "/ibsr/secondary/standard" is current directory.
. 2010-04-12 21:37:51.377 Retrieving directory listing...
> 2010-04-12 21:37:51.377 CWD /ibsr/secondary/standard/020001.030001.00772.01.2/
< 2010-04-12 21:37:51.393 550 /ibsr/secondary/standard/020001.030001.00772.01.2/: No such file or directory.
. 2010-04-12 21:37:51.393 Could not retrieve directory listing
. 2010-04-12 21:37:51.393 Retrieving directory listing...
> 2010-04-12 21:37:51.393 CWD /ibsr/secondary/standard/020001.030001.00772.01.2/
< 2010-04-12 21:37:51.393 550 /ibsr/secondary/standard/020001.030001.00772.01.2/: No such file or directory.
. 2010-04-12 21:37:51.393 Could not retrieve directory listing
. 2010-04-12 21:37:51.393 Asking user:
. 2010-04-12 21:37:51.393 Error listing directory '020001.030001.00772.01.2'. ("Could not retrieve directory listing","/ibsr/secondary/standard/020001.030001.00772.01.2/: No such file or directory.")
. 2010-04-12 21:38:01.346 Retrieving directory listing...
> 2010-04-12 21:38:01.346 CWD /ibsr/secondary/standard/020001.030001.00772.01.2/
< 2010-04-12 21:38:01.346 550 /ibsr/secondary/standard/020001.030001.00772.01.2/: No such file or directory.
. 2010-04-12 21:38:01.346 Could not retrieve directory listing
. 2010-04-12 21:38:01.346 Asking user:
. 2010-04-12 21:38:01.346 Error listing directory '020001.030001.00772.01.2'. ("Could not retrieve directory listing","/ibsr/secondary/standard/020001.030001.00772.01.2/: No such file or directory.")
. 2010-04-12 21:38:03.003 Disconnected from server


As you can see from the regular FTP connection, the file is indeede there, but winscp cannot see it?

Let me know if you need any additional information.

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
ls cannot list a file, only directories.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License