Chapter 6. Managing Files
We have seen in earlier chapters that files are often used as the medium in which data gets moved from one system to another. This could be a database extract that is written to a file in a specific format or a file that is converted from one format to another. In order to make your integration jobs complete and not rely on other automated or manual processes, the Studio offers the ability to program file operations beyond manipulating the file content. For example, we might wish to copy a file from one directory to another and once it has been moved to its final destination, delete the original file.
In this chapter we will:
Develop integration tasks that copy, rename, and delete files
Look at various tasks associated with archiving—specifically, time-stamping a file, zipping, and unzipping files
Show how we can list the files in a directory and operate on them in turn
Check for the existence of a file prior to attempting to process
When put together, these file operations...