[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/VFS - IWriteFileSystem.py:1.1.2.2 OSFileSystem.py:1.1.2.5
Stephan Richter
srichter@cbu.edu
Tue, 2 Apr 2002 20:10:37 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server/VFS
In directory cvs.zope.org:/tmp/cvs-serv9918
Modified Files:
Tag: Zope3-Server-Branch
IWriteFileSystem.py OSFileSystem.py
Log Message:
Finished writing OSFileSystem tests.
=== Zope3/lib/python/Zope/Server/VFS/IWriteFileSystem.py 1.1.2.1 => 1.1.2.2 ===
"""
- def mkfifo():
+ def mkfifo(path, mode=777):
"""Create a FIFO (a POSIX named pipe).
"""
- def remove():
+ def remove(path):
"""Remove a file. Same as unlink.
"""
=== Zope3/lib/python/Zope/Server/VFS/OSFileSystem.py 1.1.2.4 => 1.1.2.5 ===
- def mkdir(self, path, mode=777):
+ def mkdir(self, path, mode=6*2**6):
'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
- p = self.translate (path)
- return os.mkdir(p)
+ p = self.translate(path)
+ return os.mkdir(p, mode)
- def mkfifo(self):
+ def mkfifo(self, path, mode=6*2**6):
'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
- return os.mkfifo()
+ return os.mkfifo(path, mode)
- def remove(self):
+ def remove(self, path):
'See Zope.Server.VFS.IWriteFileSystem.IWriteFileSystem'
p = self.translate (path)
return os.remove(p)