mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01: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)
|
file_path = self.get_body_argument('file_path', default=None, strip=True)
|
||||||
server_id = self.get_argument('id', None)
|
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))
|
console.warning("delete {} for server {}".format(file_path, server_id))
|
||||||
|
|
||||||
if not self.check_server_id(server_id, 'del_file'):
|
if not self.check_server_id(server_id, 'del_file'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user