docs: def inflect(self, filename):
          """Inflect a filename to indicate its type.
  
          If the file is a directory, the suffix "/" is appended, otherwise
          a space is appended.
  
          :param filename: the name of the file to inflect
          """
          suffix = ("/" if os.path.isdir(filename) else " ")
          return self._escape(filename) + suffix