[CalendarServer-changes] [8929] CalendarServer/trunk/calendarserver/tools/shell/vfs.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 26 14:38:04 PDT 2012


Revision: 8929
          http://trac.macosforge.org/projects/calendarserver/changeset/8929
Author:   wsanchez at apple.com
Date:     2012-03-26 14:38:03 -0700 (Mon, 26 Mar 2012)
Log Message:
-----------
Handle trailing /

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/shell/vfs.py

Modified: CalendarServer/trunk/calendarserver/tools/shell/vfs.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/vfs.py	2012-03-24 01:37:41 UTC (rev 8928)
+++ CalendarServer/trunk/calendarserver/tools/shell/vfs.py	2012-03-26 21:38:03 UTC (rev 8929)
@@ -78,6 +78,9 @@
 
     @inlineCallbacks
     def locate(self, path):
+        if path[-1] == "":
+            path.pop()
+
         if not path:
             returnValue(RootFolder(self.service))
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120326/d0177b03/attachment.html>


More information about the calendarserver-changes mailing list