mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
cee671a58f
commit
2d099ad9c6
2 changed files with 104 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ import shutil
|
|||
import urllib
|
||||
import numbers
|
||||
import yaml
|
||||
from .shutil_backport import copytree
|
||||
|
||||
try:
|
||||
import pysqlite3 as sqlite3
|
||||
|
|
@ -602,9 +603,9 @@ def link_or_copy(src, dst):
|
|||
|
||||
def link_or_copy_directory(src, dst):
|
||||
try:
|
||||
shutil.copytree(src, dst, copy_function=os.link, dirs_exist_ok=True)
|
||||
copytree(src, dst, copy_function=os.link, dirs_exist_ok=True)
|
||||
except OSError:
|
||||
shutil.copytree(src, dst, dirs_exist_ok=True)
|
||||
copytree(src, dst, dirs_exist_ok=True)
|
||||
|
||||
|
||||
def module_from_path(path, name):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue