code: def _glob0(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 []
  
file_path: mars/mars/lib/filesystem/_glob.py
imports: import fnmatch
  import os
  import re
  from .core import FileSystem
label_desc: Use image node_id 6 for calling the FileSystemGlob obj's underlying member method code with example usage: obj._glob0(dirname, basename, dironly) and returns: list, list, list