Author: dmeyer
Date: Wed Apr 19 15:41:04 2006
New Revision: 1421
Modified:
trunk/beacon/src/crawl.py
Log:
Softlink patch 2: Add real path to inotify
Modified: trunk/beacon/src/crawl.py
==============================================================================
--- trunk/beacon/src/crawl.py (original)
+++ trunk/beacon/src/crawl.py Wed Apr 19 15:41:04 2006
@@ -223,10 +223,13 @@
# add directory to the inotify list. Do that before the real
checking
# to avoid changes we would miss between checking and adding the
# inotifier.
- log.info('add inotify for %s' % item.filename)
- self.inotify.watch(item.filename[:-1])
+ dirname = item.filename[:-1]
+ if item._beacon_islink:
+ # WARNING: item is a link, we need to follow it
+ dirname = os.path.realpath(item.filename)
+ log.info('add inotify for %s' % dirname)
+ self.inotify.watch(dirname)
- # log.info('check %s', item)
for child in self.db.query(parent=item):
if child._beacon_isdir:
# A directory. Check if it is already scanned or in the list of
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog