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: path.svnwc
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)
# XXX unify argument naming with LocalPath.listdir
def notsvn(path):
return path.basename != '.svn'
paths = []
for localpath in self.localpath.listdir(notsvn):
p = self.__class__(localpath)
paths.append(p)
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/common.py
traceback path.svnwc.listdir.0
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnwc.listdir.1
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnwc.listdir.2
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnwc.listdir.3
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/testing/test_test_repo.py
traceback path.svnwc.listdir.4
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnwc.listdir.5
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnwc.listdir.6
called in None</home/johnny/projects/merlinux/py/dist/py/test/raises.py:20>
traceback path.svnwc.listdir.7
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnwc.listdir.8
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnwc.listdir.9
called in /home/johnny/projects/merlinux/py/dist/py/path/common.py
traceback path.svnwc.listdir.10
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnwc.listdir.11
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py