Commit 6f1bd086 authored by 金凯强's avatar 金凯强 🎨

修复地址

parent 5423d910
......@@ -119,7 +119,9 @@ values
for files in os.listdir(deploy_dir):
name = os.path.join(deploy_dir, files)
back_name = os.path.join(upgrade_back_up_dir, files)
shutil.copy(name, back_name)
# 有一个文件夹.git
if os.path.isfile(name):
shutil.copy(name, back_name)
return {'message': '写入成功'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment