Re: [Solved] Same problem here with wrong //PWD cached directory
Ok, thanks for this tips @Martin!
/ini=nul
command-line switch:
[Configuration\CDCache]
entry of the winscp.ini
file. I now just empty the section before starting my script, and it works. Anyway, if we could disable this with a new option
command value like suggested in my previous post, it would be easier to address.
//PWD
issue with WinSCP 5.5.3 (build 4214), here is my log when I try to change the current directory to yann
and delete the about.html
file in this directory just after the session opening:
> 2016-10-27 17:19:56.923 Script: cd yann
. 2016-10-27 17:19:56.923 Cached directory change via "yann" to "//PWD".
. 2016-10-27 17:19:56.923 Getting current directory name.
< 2016-10-27 17:19:56.923 Script: //PWD
> 2016-10-27 17:19:56.924 Script: rm about.html
. 2016-10-27 17:19:56.924 Listing file "about.html".
. 2016-10-27 17:19:56.924 Retrieving directory listing...
> 2016-10-27 17:19:56.924 CWD /PWD/
< 2016-10-27 17:19:56.939 550 /PWD/: No such file or directory
. 2016-10-27 17:19:56.939 Could not retrieve directory listing
. 2016-10-27 17:19:56.939 LIST with -a failed, walling back to pure LIST
. 2016-10-27 17:19:56.939 Retrieving directory listing...
> 2016-10-27 17:19:56.939 CWD /PWD/
< 2016-10-27 17:19:56.950 550 /PWD/: No such file or directory
. 2016-10-27 17:19:56.950 Could not retrieve directory listing
< 2016-10-27 17:19:56.951 Script: Can't get attributes of file 'about.html'.
< 2016-10-27 17:19:56.951 Script: Could not retrieve directory listing
yann
to //PWD
/rawsetting
parameter, but in the winscp.ini
file, the CacheDirectories
and CacheDirectoryChanges
are [Sessions/xxxx]
parameters, and not [Configuration/xxx]
parameters.
option cachedir on|off
) for instance.
/PWD/public_ftp/mfimages=/PWD/=/PWD
...eaimages
and it looks like it is changing it to ...mfimages
. mfimages
is used in the other script and I don't know how/why it is popping up here.
2014-06-03 12:51:30.382 Script: cd /public_ftp/eaimages
2014-06-03 12:51:30.382 Cached directory change via "/public_ftp/eaimages" to "//PWD/public_ftp/mfimages=//PWD/=//PWD"/.
2014-06-03 12:51:30.382 Getting current directory name.
2014-06-03 12:51:30.382 Script: //PWD/public_ftp/mfimages=//PWD/=//PWD
2014-06-03 12:51:30.383 Script: put "C:\....."
2014-06-03 12:51:30.383 Copying 1 files/directories to remote directory "//PWD/public_ftp/mfimages=//PWD/=//PWD"
/public_ftp/mfimages
in another script so I can see why it is caching. I just think there is a bug and I don't want to mess with it. I just want to turn off caching for now and get this working again.