Delete the Entire Directory and/or Files in the Directory - Python for Integrated Circuits - - An Online Book - |
||||||||
Python for Integrated Circuits http://www.globalsino.com/ICs/ | ||||||||
Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix | ||||||||
================================================================================= Delete files in the directory but the subfolders in the directory and the files in the subfolders will not be deleted: Code: Delete all files in the the entire directory and its subdirectory but keeping the directory and all the subdirectories: Code: ============================================ Delete everything in the directory and the directory itself: Code: ============================================ Delete all files in the directory and shows which empty subfolders are not deleted. Code: ============================================ Delete all files in the directory, but does not delete any files in its subfolders. Code:
|
||||||||
================================================================================= | ||||||||
|
||||||||