Topic "[BUG] Saving a file does not cause remote pane refresh"

Author Message
braykov
[View user's profile]

Joined: 2013-02-12
Posts: 88
Version 5.2.2 beta
I 2-click a file from my SFTP session and edit it.
After I save the file, it is saved on the server, but the file list on the remote pane does not refresh to show me the updated date/time of last file change.

Expected: The file list should refresh. Also if I am sorting on column "Changed", the file should properly sort and got to top/bottom of list.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
This happens, if you turn off directory contents caching for the session. Is it the case?
_________________
Martin Prikryl
braykov
[View user's profile]

Joined: 2013-02-12
Posts: 88
Yes, sir.
But this looks like a bug to me.
Why would caching have anything to do with file edit? Caching or not, I have edited this file and it has been saved remotely. This is an explicit change and WinSCP is aware of that. For what reason would anyone not want to view that change has happened?
Even more, I observe this pane to make sure that when I save the file, the changed content was successfully transferred.
I would rather understand it like, if caching is on, than it wouldn't refresh - sounds more logical, but actually I demand from WinSCP that it always reads and refreshes, so my caching is off.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Well, it's not a bug, and it's by design (though not by purpose) and it is documented:
http://winscp.net/eng/docs/ui_login_directories#directory_reading_options

Though I understand it may be inconvenient and can definitely get improved.
_________________
Martin Prikryl
braykov
[View user's profile]

Joined: 2013-02-12
Posts: 88
Yes, I have read that section of the Help several times.
I can't say it is clear what the purpose is of the "Cache visited remote directories" is.
It only says that is stores file listing and that it is temporary.
Maybe the description is not complete. So this still doesn't explain what caching has to do with the pane refresh.
So, I don't want to cache anything because other people are also remotely working on this folder, i.e. I want WinSCP to re-read file/folder contents as frequently as possible. And I also want to see my changes immediately.
So how do I do that?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I didn't meant the documentation explains why it does that. I just meant it says it does it Smile

Anyway, added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1027
_________________
Martin Prikryl
braykov
[View user's profile]

Joined: 2013-02-12
Posts: 88
I really appreciate this one. 10q
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