devnuhl / win-sshfs

Automatically exported from code.google.com/p/win-sshfs
0 stars 0 forks source link

File edited on Windows did not update the timestamp #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Mount the SSHFS
2. Use gVim on Windows to edit a text file
3. Check the file time of the that file on Linux server

What is the expected output? What do you see instead?
The file time is expected to get updated to the time when the editing happened.

What version of the product are you using?

win-sshfs: 0.0.15
Client OS: Windows 8.1
Server OS: XUbuntu 13.10
Ssh server:

Please provide any additional information below.

I submitted this problem before, but it seems you were not able to repro it. I 
did not follow up with it. Now I figured that the problem is related to the 
editor SW used on Windows side. If I use Notepad++, the file time gets updated 
as expected, but if I use gVim or sublime, the file is not updated.

Original issue reported on code.google.com by oll...@gmail.com on 17 Apr 2014 at 10:01

GoogleCodeExporter commented 9 years ago
In case of sublime you have to add this user setting:
"atomic_save": false

Original comment by csanyi.a...@gmail.com on 25 Jun 2014 at 9:00

GoogleCodeExporter commented 9 years ago
Could you be more specific? How can I add this setting? Is it a win-sshfs 
setting or a sublime setting? How about gVim for Windows?

Thanks!

Original comment by junli.at...@gmail.com on 15 Jul 2014 at 9:29

GoogleCodeExporter commented 9 years ago
I used the "atomic_save" workaround in Sublime Text 2.0.2, and it worked.  It's 
a Sublime setting.  You go into "Preferences"->"Settings - User" and add the 
setting to the JSON file that opens up.

Specifically, the problem I was having was that our PHP server would not pick 
up the changes to any files saved using win-sshfs and Sublime Text because the 
file modified date was not changed.  My guess is that PHP caches scripts in 
memory, and only reloads them if it sees a change or had to clear the script 
out of memory.

Original comment by jacob.ba...@gmail.com on 24 Feb 2015 at 7:43