Message318148
I think this snippet might help you.
shutil.make_archive(base_name='/tmp/issue22021archive', format='zip', root_dir='/tmp/issue22021/root/', base_dir='structure/content/')
unzip -l /tmp/issue22021archive.zip
Archive: /tmp/issue22021archive.zip
Length Date Time Name
--------- ---------- ----- ----
0 2018-05-30 11:14 structure/content/
0 2018-05-30 11:02 structure/content/please_add.txt
--------- -------
0 2 files |
|
Date |
User |
Action |
Args |
2018-05-30 03:50:59 | bananaappletw | set | recipients:
+ bananaappletw, tarek, ezio.melotti, r.david.murray, docs@python, berker.peksag, hynek, martin.panter, serhiy.storchaka, DemoHT, rixx |
2018-05-30 03:50:59 | bananaappletw | set | messageid: <1527652259.43.0.682650639539.issue22021@psf.upfronthosting.co.za> |
2018-05-30 03:50:59 | bananaappletw | link | issue22021 messages |
2018-05-30 03:50:59 | bananaappletw | create | |
|