You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with default shutil.copytree() is that it doesn't "update"
existing directories. So I was wrong in adf58f0, we can't
pre-create the dest-directory. More, the certificate directory is being
updated over and over with subsequent calls, and we want to keep
updating the dest directory. For this to work correctly, we need to use
'shutil.copytree(dirs_exist_ok=True)' which is though not in Python 3.6.
Therefore we try the 'shutil.copytree' first (works for Python standard
library 3.7+), and we fallback to the deprecated 'distutils' copy_tree()
method to stay compatible with Python 3.6.
Partly-reverts: adf58f0Fixes: #1094
0 commit comments