mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
faea5093b8
commit
cee671a58f
1 changed files with 2 additions and 2 deletions
|
|
@ -602,9 +602,9 @@ def link_or_copy(src, dst):
|
||||||
|
|
||||||
def link_or_copy_directory(src, dst):
|
def link_or_copy_directory(src, dst):
|
||||||
try:
|
try:
|
||||||
shutil.copytree(src, dst, copy_function=os.link)
|
shutil.copytree(src, dst, copy_function=os.link, dirs_exist_ok=True)
|
||||||
except OSError:
|
except OSError:
|
||||||
shutil.copytree(src, dst)
|
shutil.copytree(src, dst, dirs_exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
def module_from_path(path, name):
|
def module_from_path(path, name):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue