49 "ReadFile": self.__readFile, |
49 "ReadFile": self.__readFile, |
50 "WriteFile": self.__writeFile, |
50 "WriteFile": self.__writeFile, |
51 "DirEntries": self.__dirEntries, |
51 "DirEntries": self.__dirEntries, |
52 "ExpandUser": self.__expanduser, |
52 "ExpandUser": self.__expanduser, |
53 "ShutilCopy": self.__shutilCopy, |
53 "ShutilCopy": self.__shutilCopy, |
|
54 "ShutilRmtree": self.__shutilRmtree, |
54 } |
55 } |
55 |
56 |
56 def handleRequest(self, request, params, reqestUuid): |
57 def handleRequest(self, request, params, reqestUuid): |
57 """ |
58 """ |
58 Public method handling the received file system requests. |
59 Public method handling the received file system requests. |
413 @return dictionary containing the reply data |
414 @return dictionary containing the reply data |
414 @rtype dict |
415 @rtype dict |
415 """ |
416 """ |
416 return { |
417 return { |
417 "ok": True, |
418 "ok": True, |
418 "name": os.path.expanduser(params["name"]) |
419 "name": os.path.expanduser(params["name"]), |
419 } |
420 } |
420 |
421 |
421 def __shutilCopy(self, params): |
422 def __shutilCopy(self, params): |
422 """ |
423 """ |
423 Private method to copy a source file to a destination file or directory. |
424 Private method to copy a source file to a destination file or directory. |