Update index.py

This commit is contained in:
midoks 2022-12-17 21:58:07 +08:00
parent 8647300e16
commit e287086b36
1 changed files with 3 additions and 4 deletions

View File

@ -70,12 +70,11 @@ def getArgs():
def getBackupDir():
bk_path = mw.getBackupDir() + "/pg"
bk_path = mw.getBackupDir() + "/databases/postgresql"
if not os.path.isdir(bk_path):
mw.execShell("mkdir -p {}/upload".format(bk_path))
mw.execShell("mkdir -p {}".format(bk_path))
bk_path_upload = bk_path + "/upload"
return bk_path_upload
return bk_path
def checkArgs(data, ck=[]):