[Python] what does shutil.rmtree(d, ignore_errors=True) do?

Discussão em 'Python' iniciado por Stack, Agosto 30, 2025.

  1. Stack

    Stack Membro Participativo

    I was working with shutil module. My file structure looked like this projects/backend/--3-5 repos-- .

    In one of the repo's views.py I used for d in destDirs: shutil.rmtree(d, ignore_errors=True)

    destDirs = "projects/backend/repo1/static/file1 After that my whole file system got deleted.

    After running the API that had that code my whole file system got deleted.

    Continue reading...

Compartilhe esta Página