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

Initial scan does not work with symbolic links #135

Open MaffooBristol opened 11 years ago

MaffooBristol commented 11 years ago

I had my scanPath set to /var/www/vhosts/myDrupal , however this is actually a symbolic link pointing to /var/www/html/myDrupal . After several days/hours of head scratching I realised the issue and now the arbitrator is running perfectly. Can anyone else reproduce this issue? Might be something to look into!

Thanks :)

wimleers commented 11 years ago

Hm. I don't remember enough underlying details of File Conveyor's code to answer that question with 100% certainty.

But… I'm pretty sure the underlying reason would be that pyinotify doesn't support symlinks. A quick search confirms that hypothesis:

From http://pyinotify.sourceforge.net/:

note that symlinks are not followed

So it would seem it's as simple as that! That is of course assuming that you're actually using the inotify-powered FSMonitor. Are you? :)