[Python] shutil.rmtree() clarification

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    I have read the documentation for this function, however, I dont think I understand it properly. If anyone can tell me what I'm missing, or if I am correct, it would be a great help. Here is my understanding:

    using the shutil.rmtree(path) function, it will delete only the directory specified, not the entire path. IE:

    shutil.rmtree('user/tester/noob')

    using this, it would only delete the 'noob' directory correct? not the complete path?

    Continue reading...

Compartilhe esta Página