Skip to content

Commit

Permalink
Update index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Feb 14, 2023
1 parent 4390180 commit c3afaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/backup_ftp/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ def backupAllFunc(stype):
os.system(cmd)
# 开始执行上传信息

bk_name = stype
if stype.find('database_') > -1:
bk_name = 'database'
plugin_name = stype.replace('database_', '')
bk_prefix = plugin_name + '/db'
stype = 'database'
else:
bk_prefix = prefix_dict[stype]
bk_name = stype

find_path = mw.getBackupDir() + '/' + bk_name + '/' + bk_prefix + '_' + name
find_new_file = "ls " + find_path + \
Expand Down

0 comments on commit c3afaeb

Please sign in to comment.