-
Notifications
You must be signed in to change notification settings - Fork 252
why not don't support watch file? #37
Comments
I'm sorry, could you be more specific? |
example: Watch("~/tmp/tmp.txt")
Modified again,no new event. |
That's because it is watching a file, and not a file path location. In your On 14 March 2013 02:44, YuFeng notifications@github.com wrote:
|
no delete it .i'am modify it |
Is it possible you are using a file editor program to do the modify? I've seen some programs delete and recreate files when doing modifications. I don't know why, but they do. |
Ya I've seen Xcode do this, not sure why either |
Probably an attempt at atomic saves, so they write the file contents to a temporary file, then delete the original file and lastly rename the temp file to the original file's name. |
If someone stumbles on this via Google: vim does the same, Create Temp, Delete Original (thus losing watch), Rename Temp (which isn't being watched now) |
yah, it would seem that pretty much every editor has an "atomic save" like this, presumably to avoid the terrible thing that happens when a file is half written and something crashes. |
No description provided.
The text was updated successfully, but these errors were encountered: