code: def get_fileinfo(self, filespec, dldir=None):
      
      if dldir is None:
          dldir = self.tmpdir
  
      # Get information about this file/URL
      info = iohelper.get_fileinfo(filespec, cache_dir=dldir)
docs: Break down a file specification into its components.
  
      Parameters
      ----------
      filespec : str
          The path of the file to load (can be a URL).
  
      dldir
  
      Returns
      -------
      res : `~ginga.misc.Bunch.Bunch`