Don't log when skipping .Radicale* files

Patch proposed by @pbiering.
This commit is contained in:
Guillaume Ayoub 2016-09-16 14:09:16 +02:00
parent 88d558f9fa
commit 2c938ea67a

View File

@ -499,6 +499,7 @@ class Collection(BaseCollection):
for href in os.listdir(filesystem_path):
if not is_safe_filesystem_path_component(href):
if not href.startswith(".Radicale"):
cls.logger.debug("Skipping collection: %s", href)
continue
child_filesystem_path = path_to_filesystem(filesystem_path, href)
@ -613,6 +614,7 @@ class Collection(BaseCollection):
for href in hrefs:
if not is_safe_filesystem_path_component(href):
if not href.startswith(".Radicale"):
self.logger.debug("Skipping component: %s", href)
continue
path = os.path.join(self._filesystem_path, href)