The Python Oracle

How to create a zip archive of a directory?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Horror Game Menu Looping

--

Chapters
00:00 Question
00:18 Accepted answer (Score 690)
00:51 Answer 2 (Score 1992)
01:20 Answer 3 (Score 86)
01:40 Answer 4 (Score 60)
03:43 Thank you

--

Full question
https://stackoverflow.com/questions/1855...

Accepted answer links:
[zipfile]: http://docs.python.org/library/zipfile.h...

Answer 2 links:
[shutil.make_archive]: https://docs.python.org/3/library/shutil...
[zipfile]: https://docs.python.org/3/library/zipfil...

Answer 4 links:
[zipapp]: https://docs.python.org/3/library/zipapp...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #zip #archive #pythonzipfile

#avk47