Python, Python Programming, Web Development, Software Development, Programming.
trying this put to avoid loosing files and subdirectories. Add several levels of confirmation and temporary archive if the force delete of a directory and it’s content is necessary when building applications. import os import shutil shutil.rmtree("python-dev") current_dir = os.getcwd() directories