[CalendarServer-changes] [7775] CalendarServer/trunk/txdav/caldav/datastore/file.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jul 11 18:16:17 PDT 2011
Revision: 7775
http://trac.macosforge.org/projects/calendarserver/changeset/7775
Author: glyph at apple.com
Date: 2011-07-11 18:16:17 -0700 (Mon, 11 Jul 2011)
Log Message:
-----------
ignore hidden files in attachment directories too (consistent with ignoring hidden calendars, hidden calendar objects, etc)
Modified Paths:
--------------
CalendarServer/trunk/txdav/caldav/datastore/file.py
Modified: CalendarServer/trunk/txdav/caldav/datastore/file.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/file.py 2011-07-12 00:42:42 UTC (rev 7774)
+++ CalendarServer/trunk/txdav/caldav/datastore/file.py 2011-07-12 01:16:17 UTC (rev 7775)
@@ -562,7 +562,8 @@
dropboxPath = (yield self._dropboxPath())
returnValue(
[Attachment(self, name, dropboxPath)
- for name in dropboxPath.listdir()]
+ for name in dropboxPath.listdir()
+ if not name.startswith(".")]
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110711/a46de35c/attachment.html>
More information about the calendarserver-changes
mailing list