wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
341 stars 95 forks source link

Use IN_CLOSE_WRITE instead of IN_MODIFY #76

Open wimleers opened 13 years ago

wimleers commented 13 years ago

It's likely that it's better to use IN_CLOSE_WRITE than IN_MODIFY to detect modified files. The reason is explained in this FAQ. However, this may imply that some changes are only synced with a delay. On the other hand, it reduces the number of useless syncs.

In 99% of web server related use cases, IN_CLOSE_WRITE is going to be the better choice.