bananaappletw <bananaappl...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue22021>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to