INNER CODE UNIT · Python

delete_botright_temp_dirs

Vinyzu/Botright · botright/botright.py:219

    def delete_botright_temp_dirs() -> None:
        temp_path = gettempdir()

        for temp_dir in os.listdir(temp_path):
            # Check if the item is a directory and starts with 'botright-'
            if os.path.isdir(os.path.join(temp_path, temp_dir)) and temp_dir.startswith("botright-"):
                # If it matches, delete the folder and its contents
                shutil.rmtree(os.path.join(temp_path, temp_dir))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…