Question: How does shutil.rmtree ( path ) differ from os . rmdir ( path ) ? Question 1 0 options: Both functions perform the same action.

How does shutil.rmtree(path) differ from os.rmdir(path)?
Question 10 options:
Both functions perform the same action.
shutil.rmtree(path) renames the folder instead of deleting it.
shutil.rmtree(path) only deletes files, not folders.
shutil.rmtree(path) can delete non-empty folders, while os.rmdir(path) can only delete empty folders.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!