diff --git a/app/classes/web/ajax_handler.py b/app/classes/web/ajax_handler.py index fa7e4b18..78ad91d0 100644 --- a/app/classes/web/ajax_handler.py +++ b/app/classes/web/ajax_handler.py @@ -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'):