docs: def _auto_complete_filename(self, location):
          """
          Args:
              location (str | unicode | None): Location to auto-complete with {basename}, if it points to a folder
  
          Returns:
              str | None: {location}/{basename}
          """
          path = formatted(location, self)
          if path:
              if os.path.isdir(path):
                  filename = formatted(self.basename, self)
                  if not filename:
                      return None
                  path = os.path.join(path, filename)
              if path and ensure_folder(path, fatal=False, logger=LOG.debug, dryrun=False) >= 0:
                  return path