From c2f5a12ce1689ee66e93740697a2550c6bfd2a21 Mon Sep 17 00:00:00 2001 From: Ivanq Date: Sat, 19 May 2018 12:15:13 +0300 Subject: [PATCH] Add fileList, dirList as CORS commands --- plugins/Cors/CorsPlugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/Cors/CorsPlugin.py b/plugins/Cors/CorsPlugin.py index dd51690d..cdb18410 100644 --- a/plugins/Cors/CorsPlugin.py +++ b/plugins/Cors/CorsPlugin.py @@ -52,6 +52,12 @@ class UiWebsocketPlugin(object): def actionFileGet(self, to, inner_path, *args, **kwargs): return self.corsFuncWrapper("actionFileGet", to, inner_path, *args, **kwargs) + def actionFileList(self, to, inner_path, *args, **kwargs): + return self.corsFuncWrapper("actionFileList", to, inner_path, *args, **kwargs) + + def actionDirList(self, to, inner_path, *args, **kwargs): + return self.corsFuncWrapper("actionDirList", to, inner_path, *args, **kwargs) + def actionFileRules(self, to, inner_path, *args, **kwargs): return self.corsFuncWrapper("actionFileRules", to, inner_path, *args, **kwargs)