Skip to content

Instantly share code, notes, and snippets.

View shreyanshvarshney's full-sized avatar
:octocat:
New Account.

shreyanshvarshney

:octocat:
New Account.
View GitHub Profile
@shreyanshvarshney
shreyanshvarshney / DirectoryCompressionScript.py
Last active May 18, 2020 16:02
Python Script to automate directory compression.
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.