src/eric7/RemoteServer/EricServerFileSystemRequestHandler.py

branch
server
changeset 10584
a596cf392291
parent 10583
2114cc7275e8
child 10596
ea35c92a3c7c
equal deleted inserted replaced
10583:2114cc7275e8 10584:a596cf392291
31 @type EricServer 31 @type EricServer
32 """ 32 """
33 self.__server = server 33 self.__server = server
34 34
35 self.__requestMethodMapping = { 35 self.__requestMethodMapping = {
36 "GetPathSep": self.__getPathSeparator,
36 "Chdir": self.__chdir, 37 "Chdir": self.__chdir,
37 "Getcwd": self.__getcwd, 38 "Getcwd": self.__getcwd,
38 "Listdir": self.__listdir, 39 "Listdir": self.__listdir,
39 "Mkdir": self.__mkdir, 40 "Mkdir": self.__mkdir,
40 "Rmdir": self.__rmdir, 41 "Rmdir": self.__rmdir,
72 self.__server.sendJson( 73 self.__server.sendJson(
73 category=EricRequestCategory.FileSystem, 74 category=EricRequestCategory.FileSystem,
74 reply=request, 75 reply=request,
75 params={"Error": f"Request type '{request}' is not supported."}, 76 params={"Error": f"Request type '{request}' is not supported."},
76 ) 77 )
78
79 def __getPathSeparator(self, params):
80 """
81 Private method to report the path separator.
82
83 @param params dictionary containing the request data
84 @type dict
85 @return dictionary containing the reply data
86 @rtype dict
87 """
88 return {"separator": os.sep}
77 89
78 def __chdir(self, params): 90 def __chdir(self, params):
79 """ 91 """
80 Private method to change the current working directory. 92 Private method to change the current working directory.
81 93

eric ide

mercurial