class_docstr: path implementation that offers access to (possibly remote) subversion
  repositories. 
docstr: list directory contents, possibly filter by the given fil func
  and possibly sorted.
code: def listdir(self, fil=None, sort=None):
      """list directory contents, possibly filter by the given fil func
      and possibly sorted.
      """
      if isinstance(fil, str):
          fil = common.FNMatcher(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.join(name) for (name, info) in nameinfo_seq]
      if fil:
          paths = [x for x in paths if fil(x)]
      self._sortlist(paths, sort)
      return paths
  
imports: import os, sys, time, re
  import py
  from py import path, process
  from py._path import common
  from py._path import svnwc
  from py._path.cacheutil import BuildcostAccessCache, AgingCache
label_desc: Use image node_id 23 for calling the SvnCommandPath obj's underlying member method code with example usage: obj.listdir(fil, sort) and returns: paths