return a sequence of Paths.
listdir will return either a tuple or a list of paths
depending on implementation choices.
def listdir(self, fil=None, sort=None):
origin: SvnPathBase
where:
exceptions that might appear during execution:
function source:
def listdir(self, fil=None, sort=None):
""" return a sequence of Paths.
listdir will return either a tuple or a list of paths
depending on implementation choices.
"""
if isinstance(fil, str):
fil = common.fnmatch(fil)
nameinfo_seq = self._listdir_nameinfo()
if len(nameinfo_seq) == 1:
name, info = nameinfo_seq[0]
if name == self.basename and info.kind == 'file':
#if not self.check(dir=1):
raise py.error.ENOTDIR(self)
paths = self._make_path_tuple(nameinfo_seq)
if fil or sort:
paths = filter(fil, paths)
paths = isinstance(paths, list) and paths or list(paths)
if callable(sort):
paths.sort(sort)
elif sort:
paths.sort()
return paths
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.0
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.1
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.2
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.3
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.4
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.5
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnurl.listdir.6
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.7
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.8
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnurl.listdir.9
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.10
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.11
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.12
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.13
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.14
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py
traceback path.svnurl.listdir.15
called in None</home/johnny/projects/merlinux/py/dist/py/test/raises.py:20>
traceback path.svnurl.listdir.16
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnurl.listdir.17
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnurl.listdir.18
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnurl.listdir.19
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/svncommon.py