=== modified file 'xl/collection.py' --- xl/collection.py 2009-07-28 15:10:31 +0000 +++ xl/collection.py 2009-07-29 20:44:52 +0000 @@ -585,6 +585,14 @@ return False count += 1 path = os.path.abspath(os.path.join(basepath, filename)) + if os.path.islink(path): + link_loc = os.readlink(path) + if not link_loc.startswith(os.sep): + link_loc = os.path.realpath(os.path.join(os.path.dirname(path), link_loc)) + if link_loc.startswith(os.path.realpath(self.location)): + logger.info(_("Ignoring symlink %s pointing to %s") % (path, link_loc)) + continue + fullpath = "file://" + path try: