Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to compress a folder in python

Status
Not open for further replies.

bhavanasi

Programmer
Jan 6, 2011
11
0
0
IN
i want to learn "how to compress a folder which is having some text files"...

either .tar or .zip

so please help me
 
I would probably call tar or zip via subprocess

I do not Have A.D.D. im just easily, Hey look a Squirrel!
 
Code:
>>> import os, zipfile
>>> help(zipfile)
>>> help(os.walk)
>>> help(os.listdir)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top