I am new to Python programming but have made considerable progress in the last week.
I need to know if it is possible and how if it is, to zip the contents of a directory using python. I have tried to call winzip using os.system, but have run into some challenges. I would like to make my program portable so I would rather use some of pythons built it functions if possible. The gzip module seemed promising but from what I have seen it is only good for files, not directories and all of its contents.
Help would be appreciated if anyone out there has encountered the same thing or knows the answer.
I need to know if it is possible and how if it is, to zip the contents of a directory using python. I have tried to call winzip using os.system, but have run into some challenges. I would like to make my program portable so I would rather use some of pythons built it functions if possible. The gzip module seemed promising but from what I have seen it is only good for files, not directories and all of its contents.
Help would be appreciated if anyone out there has encountered the same thing or knows the answer.