0

I am using WinSCP to access a remote directory on ubuntu 18.04 from windows10.

I started an SFTP session and opened a remote file from winscp file browser, say hello.txt, on a local editor Geany.

  1. I make some changes in hello.txt remotely.
  2. winscp updates the timestamp of hello.txt on my local system.
  3. Geany does not pick up the change in hello.txt when I refresh/reload the file using CTRL+R.
  4. Changes in hello.txt are taken in only after I close Geany completely and reopen hello.txt from winscp file browser.

Any ideas how to get around this problem?

8
  • After you save the file in the editor, and you reload the directory in WinSCP file panel, does the file timestamp and size change? Aug 27, 2020 at 8:06
  • Yes it does @MartinPrikryl Aug 27, 2020 at 8:20
  • So WinSCP does upload the changed file, right? It's some other software that does not pick up the change. Aug 27, 2020 at 8:22
  • Yes correct. Infact no editor on my system is picking up the changed file. Aug 27, 2020 at 8:26
  • What is "editor on my system"? Local system or remote system? What editor? Aug 27, 2020 at 8:29

1 Answer 1

0

Reloading file panel only (Ctrl+R) does not make WinSCP re-download the edited files.

After the reload, you need to use "Edit" to force the re-download of the file. If your editor is able to detect the file change, it should reload the file. Notepad++ does. I do not know Geany.

2
  • Correct both Notepad++ and Geany has the capability to detect the file change automatically and it works pretty well apart from when winscp is changing the file. In this case, neither of them is not auto-detecting the change, I tried both the editors. Aug 27, 2020 at 9:22
  • For me it works with Notepad++. I reload the directory with Ctrl+R. Then I "edit" the already opened file again with F4. Notepad++ prompts me with "This file has been modified by another program. Do you want to reload it?". After selecting Yes, I see the new contents in the editor. Aug 27, 2020 at 10:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .