mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
vfs: add "makelock()" and "readlock()"
This commit is contained in:
parent
2b101a0a9d
commit
f2d55c7c7d
@ -177,12 +177,18 @@ class abstractvfs(object):
|
||||
def makedirs(self, path=None, mode=None):
|
||||
return util.makedirs(self.join(path), mode)
|
||||
|
||||
def makelock(self, info, path):
|
||||
return util.makelock(info, self.join(path))
|
||||
|
||||
def mkdir(self, path=None):
|
||||
return os.mkdir(self.join(path))
|
||||
|
||||
def readdir(self, path=None, stat=None, skip=None):
|
||||
return osutil.listdir(self.join(path), stat, skip)
|
||||
|
||||
def readlock(self, path):
|
||||
return util.readlock(self.join(path))
|
||||
|
||||
def rename(self, src, dst):
|
||||
return util.rename(self.join(src), self.join(dst))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user