Attempt to fix windows backup delete issue. Zedifus will test.

This commit is contained in:
Andrew 2021-11-19 21:28:46 -05:00
parent cef282ca91
commit 146873eb10

View File

@ -214,6 +214,9 @@ class AjaxHandler(BaseHandler):
file_path = self.get_body_argument('file_path', default=None, strip=True)
server_id = self.get_argument('id', None)
if os.name == "nt":
file_path = file_path.replace('/', "\\")
console.warning("delete {} for server {}".format(file_path, server_id))
if not self.check_server_id(server_id, 'del_file'):