def METHOD_NAME(self, dirname, basename, dironly):  # pragma: no cover
    if not basename:
        # `os.path.split()` returns an empty basename for paths ending with a
        # directory separator.  'q*x/' should match only directories.
        if self._fs.isdir(dirname):
            return [basename]
    else:
        if self._fs.exists(self._fs.path_join(dirname, basename)):
            return [basename]
    return []