def listdir(patch, path):
    """
	Return a list containing the names of the entries in the directory
	given by path. The list is in arbitrary order.
	It does not include the special entries '.' and '..' even if
	they are present in the directory.
	"""
    ap = os.path.abspath(os.path.join(os.getcwd(), path))
    manager = get_manager()
    fsi, relpath, readonly = manager.get_fsi(ap)
    if fsi is None:
        return _org_listdir(ap)
    else:
        try:
            return fsi.listdir(relpath)
        except OperationFailure:
            raise os.error("[Errno 2] No such file or directory: '/{p}'".format(p=ap))

	Return a list containing the names of the entries in the directory
	given by path. The list is in arbitrary order.
	It does not include the special entries '.' and '..' even if
	they are present in the directory.
	
lib/mlpatches/mount_base.py