Topic "Caching of server listing with symbolic links"

Author Message
Sparc

Guest


Hi, just found in build 4.06 358:

remote listing shows old (cached) content if only the destination of a link change

first:
name1 -> /dir1/dir2/dir3
listing correct

do some work with WinSCP
change on remote server (by someone):
name1 -> /dir1/dir2/dir4

change to base dir of name1, try to go to name1
Listing shows content of /dir1/dir2/dir3
-> not correct up to manual refresh of basedir of name1

Repro?

Sparc
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Sorry, I'm not usre if I understand. What is name1? File, subdirectory name, symlink?
_________________
Martin Prikryl
Guest




Ok, difficult to explain (and to understand).

name1 is a link to the physical directory /dir1/dir2/dir3 (or after the change to /dir1/dir2/dir4

link1 would have been better...

Sparc
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Ok, so you a link, which is in directory you have already visited with WinSCP in current session, hence it is cached. You change destination of the link externally (not in WinSCP). And than you attempt to "enter" the link and WinSCP opens the previous destination, not current one. Right?

Well, this is how it should work. If you do not like it, disable directory cache.
_________________
Martin Prikryl
Sparc

Guest


Correct. That's the point.

Should't (directory) caching work dynamicly?
Only show/use cache if nothing has changed?

Where can I configure (disable) the cache?

Sparc
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Sparc wrote:
Should't (directory) caching work dynamicly?
Only show/use cache if nothing has changed?

Should. But it can work, only if you do the change in WinSCP, so WinSCP knows that something has changed. It cannot know that something has changed if you do the change externally.

Quote:
Where can I configure (disable) the cache?

Please read documentation.
_________________
Martin Prikryl
Sparc

Guest


Ok, I understand.

Thanks
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