To delete a directory with content use the method ‘rmtree’ from shutil module.
remove_dir_with_content.py
import shutil
path = '/Users/Shared/data'
shutil.rmtree(path)
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
No comments:
Post a Comment