FileHelper

class DIRAC.Core.DISET.private.FileHelper.FileHelper(oTransport=None, checkSum=True)

Bases: object

BufferToNetwork(stringToSend)
DataSourceToNetwork(dataSource)
FDToNetwork(iFD)
__init__(oTransport=None, checkSum=True)

x.__init__(…) initializes x; see help(type(x)) for signature

bulkListToNetwork(iFD, compress=True)
bulkToNetwork(fileList, compress=True, onthefly=True)
disableCheckSum()
enableCheckSum()
errorInTransmission()
finishedTransmission()
getDataSink(uFile)
getFileDescriptor(uFile, sFileMode)
getHash()
getTransferedBytes()
markAsTransferred()
networkToBulk(destDir, compress=True, maxFileSize=0)
networkToDataSink(dataSink, maxFileSize=0)
networkToFD(iFD, maxFileSize=0)
networkToString(maxFileSize=0)

Receive the input from a DISET client and return it as a string

receiveData(maxBufferSize=0)
receivedEOF()
sendData(sBuffer)
sendEOF()
sendError(errorMsg)
setDirection(direction)
setTransport(oTransport)
stringToNetwork(stringVal)

Send a given string to the DISET client over the network