def doSync(self): # XXX - Here is part which is an separated function. acceptorPathPrefix = self.acceptor.getFilesSpecPool()[0].getPath() # XXX - First path from acceptor will be used, and the dictionary is not sorted, and dictionary object is used here. for pathSpec in self.donor.getFilesSpecPool(): pathFull = os.path.normpath( path( acceptorPathPrefix, Helper.os_path_relpath( pathSpec.getPath(), os.path.abspath(os.sep) ) ) ) if self.acceptor.isLocal(): self.__createPath(pathFull) else: AreaConn(self.acceptor).createPath(pathFull) for donorURL, acceptorURL, ignoreList in self.__getURLPool(): self.__rsync(donorURL, acceptorURL, ignoreList)