Fix T73798: Error raising exception for local shutil.copytree

This commit is contained in:
2020-02-15 10:40:43 +11:00
parent 7d90ff08f3
commit 92a56bbe6a

View File

@@ -52,8 +52,10 @@ def module_filesystem_remove(path_base, module_name):
# This duplicates shutil.copytree from Python 3.8, with the new dirs_exist_ok
# argument that we need. Once we upgrade to 3.8 we can remove this.
def _preferences_copytree(entries, src, dst):
import shutil
import os
import shutil
from shutil import Error
os.makedirs(dst, exist_ok=True)
errors = []