Issue 35964: shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong (original) (raw)
Running shutil.make_archive('a', 'tar', 'subdir') is created wrong and not really needed entry "./" which is visible in tarfile.Tarfile.list():
['./', 'foo/', 'hello.txt', 'foo/bar.txt']
I have tested and found this issue in the following versions of python: 2.7.15rc1 FOUND 3.6.7 FOUND 3.7.1 FOUND
I've attached a simple script which illustrates problem. Tested on Ubuntu Linux with mentioned python versions.
Similar issue has been fixed for 'zip' (https://bugs.python.org/issue28488) but exists for 'tar' archives.