vfs: add listdir for os.listdir in vfs
authorChinmay Joshi <c@chinmayjoshi.com>
Fri, 20 Jun 2014 21:18:14 +0530
changeset 21799 dfacdd6a111e
parent 21798 f2c617ff2abc
child 21800 219af1521a6a
vfs: add listdir for os.listdir in vfs This patch adds listdir() in vfs to use os.listdir().
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Mon Jun 23 09:24:56 2014 -0400
+++ b/mercurial/scmutil.py	Fri Jun 20 21:18:14 2014 +0530
@@ -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)