catenateFilesFactory script generates a catenateFiles function parameterized for common variations.
Catenating (or concatenating) files is a common data processing task, but there are at least three independent binary choices for the functional requirements. This could mean 8 different functions, or one functions with three additional boolean arguments.
Binary files are relatively easy to handle. So are text files - unless the last line of a file does not end with a line separator. Then the catenation function must insert a line separator between the last line and the first line of the next file.
An existing target file may or may not be cleared before any of the source files are appended to it.
Finally, if the target file does not already exist, it may be created; or it may be required to exist already.
The catenateFilesFactory generates and returns a parameterized catentation function each time it is called. Each function has attributes and a doc string describing the parameter values used to generate it.
Example:
catenateFiles = catenateFilesFactory()
srcFiles = ['src1.txt', 'src2.txt', 'src3.txt']
catenateFiles(tgtFilename, *srcFiles)
catenateBin = catenateFilesFactory(isTextFiles=False, isClearTgt=False, isCreateTgt=False)
catenateBin('growing.bin', 'a.bin', 'b.bin')
Top 4 Download periodically updates information of catenateFilesFactory 1.0 script from the developer, but some information may be slightly out-of-date.
Our script download links are directly from our mirrors or publisher's website. catenateFilesFactory 1.0 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!