76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
else:
eraseFolderContent(sp)
def createFolder (sp):
"make a folder if it doesn’t exist; don’t change anything if it exists"
if not os.path.exists(sp):
os.mkdir(sp)
def copyFolder (spSrc, spDst):
"copy folder content from src to dst"
try:
shutil.copytree(spSrc, spDst)
except OSError as e:
|
|
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
else:
eraseFolderContent(sp)
def createFolder (sp):
"make a folder if it doesn’t exist; don’t change anything if it exists"
if not os.path.exists(sp):
os.makedirs(sp, exist_ok=True)
def copyFolder (spSrc, spDst):
"copy folder content from src to dst"
try:
shutil.copytree(spSrc, spDst)
except OSError as e:
|