src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py

branch
server
changeset 10561
be23a662d709
parent 10555
08e853c0c77b
child 10574
622e59b51640
equal deleted inserted replaced
10560:28b14d2df6a1 10561:be23a662d709
261 @type str 261 @type str
262 @param modes list of modes to check for 262 @param modes list of modes to check for
263 @type str or list of str 263 @type str or list of str
264 @return flag indicating the user has the asked for permissions 264 @return flag indicating the user has the asked for permissions
265 @rtype bool 265 @rtype bool
266 @exception ValueError raised for an illegal modes list
266 """ 267 """
267 if not modes: 268 if not modes:
268 raise ValueError( 269 raise ValueError(
269 "At least one of 'read', 'write' or 'execute' must be specified." 270 "At least one of 'read', 'write' or 'execute' must be specified."
270 ) 271 )
292 loop.quit() 293 loop.quit()
293 294
294 self.__serverInterface.sendJson( 295 self.__serverInterface.sendJson(
295 category=EricRequestCategory.FileSystem, 296 category=EricRequestCategory.FileSystem,
296 request="Access", 297 request="Access",
297 params={"name": name, "modes":modes}, 298 params={"name": name, "modes": modes},
298 callback=callback, 299 callback=callback,
299 ) 300 )
300 301
301 loop.exec() 302 loop.exec()
302 return accessOK 303 return accessOK

eric ide

mercurial