code: def as_existing_file(self, filepath):
          
          if os.path.isfile(filepath) and hasattr(self, '__file_class__'):
              return self.__file_class__(filepath)  # pylint: disable=no-member
          return self.__class__(filepath)
docs: Return the file class for existing files only