[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/VFS - OSFileSystem.py:1.1.4.2

Shane Hathaway shane@cvs.zope.org
Thu, 18 Apr 2002 17:44:49 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Server/VFS
In directory cvs.zope.org:/tmp/cvs-serv26377/VFS

Modified Files:
      Tag: Zope-3x-branch
	OSFileSystem.py 
Log Message:
Minor correction that might fix Windows tests.


=== Zope3/lib/python/Zope/Server/VFS/OSFileSystem.py 1.1.4.1 => 1.1.4.2 ===
             # Someone is trying to get lower than the permitted root.
             # We just ignore it.
-            path = '/'
+            path = os.sep
         return path
 
 
@@ -222,7 +222,7 @@
         # Normalize the directory
         path = self.normalize(path)
         # Prepare for joining with root
-        while path.startswith('/'):
+        while path.startswith(os.sep):
             path = path[1:]
         # Join path with root
         return os.path.join(self.root, path)