Print Directory List in Python To get list of sub-directories present in a computer folder, use the code below. Edit the folder path mentioned in the variable “folder_path”. Then execute this ready to use code. It will print the sub-directories name one by one. #List all subdirectories in a folder […]
How to Zip Directory using Python? – Archive folder
December 19, 2024
Archive or Zip all files in Directory The code in this page will Zip directory full of files. It will first get folder path as input. Then loop thru the directory & its sub-directories to get all the files list. Then each file in the list is added to the […]