[issue34450] improve shutil.make_archive

2018-08-22 Thread iMath
iMath added the comment: one workaround is : if os.path.join(root_dir, base_dir) exists, use the current implementation , this is set for backwards-compatibility, if not exist, please consider the feature in my last post(maybe we should recommend Python users to follow this approach in the

[issue34450] improve shutil.make_archive

2018-08-21 Thread Emily Morehouse
Emily Morehouse added the comment: I'll have to think through this a bit more, but my gut is that it would be much more favorable for backwards-compatibility to clarify the documentation instead of changing the functionality. In any case, the change would only take effect in 3.8+, so it soun

[issue34450] improve shutil.make_archive

2018-08-21 Thread iMath
New submission from iMath : The current behavior of shutil.make_archive caused many issues , the problem is mainly on the extracted archive directory hierarchy. These are the proofs: https://stackoverflow.com/questions/51914467/directory-hierarchy-issue-when-using-shutil-make-archive https://st