def ensure_removed(self):
        """Make temporary folder and files within are deleted."""

        if self.temp_dir is None: return

        for path in self.created_filepaths:

            try:
                path.unlink()
            except FileNotFoundError:
                pass

        self.temp_dir.rmdir()
        self.temp_dir = None
Make temporary folder and files within are deleted.
nodezator/ourstdlibs/path.py