Electron microscopy
 
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:
         Automatically Review, Scroll, Click Webpage and Its Link
Input:         
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link
Output:         
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link
============================================

Delete all files in the the entire directory and its subdirectory but keeping the directory and all the subdirectories: Code:
         Automatically Review, Scroll, Click Webpage and Its Link
Input:         
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link
Output:         
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link

============================================

Delete everything in the directory and the directory itself: Code:
         Automatically Review, Scroll, Click Webpage and Its Link
Input:         
         Automatically Review, Scroll, Click Webpage and Its Link                   
Output:         
         Automatically Review, Scroll, Click Webpage and Its Link

============================================

Delete all files in the directory and shows which empty subfolders are not deleted. Code:
         Automatically Review, Scroll, Click Webpage and Its Link
Input:         
         Automatically Review, Scroll, Click Webpage and Its Link
Output:         
         Automatically Review, Scroll, Click Webpage and Its Link

============================================

Delete all files in the directory, but does not delete any files in its subfolders. Code:
         Automatically Review, Scroll, Click Webpage and Its Link
Input:         
         Automatically Review, Scroll, Click Webpage and Its Link
Output:         
         Automatically Review, Scroll, Click Webpage and Its Link
         Automatically Review, Scroll, Click Webpage and Its Link
         

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 

 

 

 

 

 

=================================================================================