changeset 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
parents f2c617ff2abc
children 219af1521a6a
files mercurial/scmutil.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)