def filedict(self, kv):
        """Updates filedict with single file entry or deletes given
        key if the value is False. Shouldn't be used by the user."""

        k, v = kv
        if v is not None:
            self.__files.update({k: v})
        else:
            with suppress(KeyError):
                del self.__files[k]