guard / listen

The Listen gem listens to file modifications and notifies you about the changes.
https://rubygems.org/gems/listen
MIT License
1.92k stars 246 forks source link

Feature request: ignore RSync created temporary files #350

Open e2 opened 8 years ago

e2 commented 8 years ago

(Originally reported as a bug here: https://github.com/guard/guard/issues/794)

Before overwriting target files, RSync creates temporary files.

Without handling this properly, Listen will detect files as added instead of changes - and tools like Guard won't get the :modified events they are expecting.

e2 commented 8 years ago

As a workaround RSync's --inplace parameters should modify the file directly (instead of renaming).