Mercurial > hg > mercurial-source
diff mercurial/scmutil.py @ 21799:dfacdd6a111e
vfs: add listdir for os.listdir in vfs
This patch adds listdir() in vfs to use os.listdir().
author | Chinmay Joshi <c@chinmayjoshi.com> |
---|---|
date | Fri, 20 Jun 2014 21:18:14 +0530 (2014-06-20) |
parents | 90f9be5adade |
children | 8110405cf8ae |
line wrap: on
line diff
--- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -184,6 +184,9 @@ def lstat(self, path=None): return os.lstat(self.join(path)) + def listdir(self, path=None): + return os.listdir(self.join(path)) + def makedir(self, path=None, notindexed=True): return util.makedir(self.join(path), notindexed)