This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess as sp | |
print("What type of compression you want? \n0. Folders inside a Folder \n1. Direct Folder\n") | |
compression = input("Enter the number 0 or 1?\n") | |
# You may refer to the images mentioned in this blog, in the later section for better clarification. | |
if compression == '0': | |
path = input('Enter the Directory location in which you have to compress the inside folders/directories (Sample location: /Users/mymacname/Desktop/ParentDirectory) \n') | |
# Input your dicrectory path in which you have to compress the inside folders/directories. |