diff -r 89b36a39fe69 -r 2057b1b198a5 src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py --- a/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py Sat Oct 05 10:28:34 2024 +0200 +++ b/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py Sat Oct 05 11:35:07 2024 +0200 @@ -61,6 +61,15 @@ self.__serverPathSep = self.__getPathSep() + def serverInterface(self): + """ + Public method to get a reference to the server interface object. + + @return reference to the server interface object + @rtype EricServerInterface + """ + return self.__serverInterface + def __hasMagic(self, pathname): """ Private method to check, if a given path contains glob style magic characters. @@ -574,12 +583,14 @@ return accessOK - def mkdir(self, directory): + def mkdir(self, directory, mode=0o777): """ Public method to create a new directory on the eric-ide server. @param directory absolute path of the new directory @type str + @param mode permissions value (defaults to 0o777) + @type int @return tuple containing an OK flag and an error string in case of an issue @rtype tuple of (bool, str) """ @@ -608,7 +619,10 @@ self.__serverInterface.sendJson( category=EricRequestCategory.FileSystem, request="Mkdir", - params={"directory": FileSystemUtilities.plainFileName(directory)}, + params={ + "directory": FileSystemUtilities.plainFileName(directory), + "mode": mode, + }, callback=callback, )