[docs] [issue22021] shutil.make_archive() root_dir do not work
bananaappletw
report at bugs.python.org
Tue May 29 23:50:59 EDT 2018
bananaappletw <bananaappletw at gmail.com> added the comment:
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
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22021>
_______________________________________
More information about the docs
mailing list