Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: program double directory name in CWD path

Thanks for your report.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Jokada

program double directory name in CWD path

Hi,

I'm having a strange issue when trying to enter a directory in the root folder.
The program connects fine and lists the directories in the root folder. When clicking on one (let's say the directory is named OUT), I get following error:
For some reason WinSCP is looking for a directory in the specified one. Could not retrieve directory listing
/out/out/: No such file or directory

If I choose another directory it will return the same error: /someDir/someDir/ No such file or directory.

I've tested windows FTP command & fileZilla, both are working fine.

Version 567
Tested on Win7, server 2012, both GUI and via Script
Active/passive FTP, same error

Log from script:

. 2016-01-01 22:43:40.889 Command-line: "P:\Development\customer\winscp576\WinSCP.exe" /console=576 /consoleinstance=_6056_500 "/script=EDIscript.txt" "/log=session.log"
. 2016-01-01 22:43:40.889 Time zone: Current: GMT+1, Standard: GMT+1 (Romance (standaardtijd)), DST: GMT+2 (Romance (zomertijd)), DST Start: 27/03/2016, DST End: 30/10/2016
. 2016-01-01 22:43:40.889 Login time: vrijdag 1 januari 2016 22:43:40
. 2016-01-01 22:43:40.889 --------------------------------------------------------------------------
. 2016-01-01 22:43:40.889 Script: Retrospectively logging previous script records:
> 2016-01-01 22:43:40.889 Script: open userxxx@ftphubx
. 2016-01-01 22:43:40.889 --------------------------------------------------------------------------
. 2016-01-01 22:43:40.889 Session name: userxxxv@ftphubx(Site)
. 2016-01-01 22:43:40.889 Host name: ftphubx(Port: 21)
. 2016-01-01 22:43:40.889 User name: userxxx (Password: Yes, Key file: No)
. 2016-01-01 22:43:40.889 Transfer Protocol: FTP
. 2016-01-01 22:43:40.889 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2016-01-01 22:43:40.889 Disable Nagle: No
. 2016-01-01 22:43:40.899 Proxy: none
. 2016-01-01 22:43:40.899 Send buffer: 262144
. 2016-01-01 22:43:40.899 UTF: 1
. 2016-01-01 22:43:40.899 FTP: FTPS: None; Passive: Yes [Force IP: A]; MLSD: - [List all: -]
. 2016-01-01 22:43:40.899 Local directory: C:\Users\jo\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2016-01-01 22:43:40.899 Cache directory changes: Yes, Permanent: Yes
. 2016-01-01 22:43:40.899 Timezone offset: 0h 0m
. 2016-01-01 22:43:40.899 --------------------------------------------------------------------------
. 2016-01-01 22:43:40.909 Connecting to ftphubx. ...
. 2016-01-01 22:43:40.949 Connected with ftphubx. . Waiting for welcome message...
< 2016-01-01 22:43:40.979 220 FTP says hello to unknown@dxxxx.access.be
> 2016-01-01 22:43:40.979 USER userxxx
< 2016-01-01 22:43:40.999 331 Enter password
> 2016-01-01 22:43:40.999 PASS ********
< 2016-01-01 22:43:41.029 230 Good Evening, userxxx.
> 2016-01-01 22:43:41.029 SYST
< 2016-01-01 22:43:41.049 215 UNIX Type: L8
> 2016-01-01 22:43:41.049 FEAT
< 2016-01-01 22:43:41.069 500 Unknown command FEAT
> 2016-01-01 22:43:41.069 OPTS UTF8 ON
< 2016-01-01 22:43:41.089 500 Unknown command OPTS
. 2016-01-01 22:43:41.089 Connected
. 2016-01-01 22:43:41.099 --------------------------------------------------------------------------
. 2016-01-01 22:43:41.099 Using FTP protocol.
. 2016-01-01 22:43:41.099 Doing startup conversation with host.
> 2016-01-01 22:43:41.099 PWD
< 2016-01-01 22:43:41.129 257 "/" is current directory
. 2016-01-01 22:43:41.129 Changing directory to "/".
> 2016-01-01 22:43:41.129 CWD /
< 2016-01-01 22:43:41.149 250 "/" now current directory
. 2016-01-01 22:43:41.149 Getting current directory name.
> 2016-01-01 22:43:41.149 PWD
< 2016-01-01 22:43:41.169 257 "/" is current directory
. 2016-01-01 22:43:41.169 Startup conversation with host finished.
< 2016-01-01 22:43:41.169 Script: Active session: [1] userxxx@ftphubx.
> 2016-01-01 22:43:41.169 Script: cd /out
. 2016-01-01 22:43:41.169 Changing directory to "/out".
> 2016-01-01 22:43:41.169 CWD /out
< 2016-01-01 22:43:41.189 250 "out" now current directory
. 2016-01-01 22:43:41.189 Getting current directory name.
> 2016-01-01 22:43:41.189 PWD
< 2016-01-01 22:43:41.209 257 "out" is current directory
< 2016-01-01 22:43:41.209 Script: out
> 2016-01-01 22:43:41.219 Script: lcd P:\Development\customer\in
< 2016-01-01 22:43:41.219 Script: P:\Development\customer\in
> 2016-01-01 22:43:41.219 Script: get -transfer=binary *.* .\
. 2016-01-01 22:43:41.219 Retrieving directory listing...
> 2016-01-01 22:43:41.219 CWD /out/out/ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
< 2016-01-01 22:43:41.239 550 /out/out/: No such file or directory <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
. 2016-01-01 22:43:41.239 Could not retrieve directory listing
. 2016-01-01 22:43:41.239 Asking user:
. 2016-01-01 22:43:41.239 Error listing directory 'out'. ("Could not retrieve directory listing","/out/out/: No such file or directory")
< 2016-01-01 22:43:41.239 Script: Error listing directory 'out'.
< 2016-01-01 22:43:41.239 Script: Could not retrieve directory listing

< 2016-01-01 22:43:41.239 /out/out/: No such file or directory



script content:
open userxxxv@ftphubx
cd /out
lcd P:\Development\customer\in
get -transfer=binary *.* .\
quit


Thank you for your assistance

Kind regards
Jokada