Acquire.Client._fileops module

create_new_file(filename, dir=None)[source]

Create a new file in directory ‘dir’ (default current directory) called ‘filename’. If the file already exists, then create a new file with name derived from ‘filename’

compress(inputfile=None, outputfile=None, inputdata=None, compression_type='bz2')[source]

Compress either the passed filename or filedata using the specified compression type. This will compress either to the file called ‘outputfile’, or to a tmpfile. The name of the file will be returned. If this is compressing data, then it will return the compressed data

uncompress(inputfile=None, outputfile=None, inputdata=None, compression_type='bz2')[source]

Uncompress either the passed filename or filedata using the specified compression type. This will uncompress either to the file called ‘outputfile’, or to a tmpfile. The name of the file will be returned. If this is uncompressing data, then it will return the uncompressed data