mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Attempt to fix windows backup delete issue. Zedifus will test.
This commit is contained in:
parent
cef282ca91
commit
146873eb10
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user