- Learning Pentaho Data Integration 8 CE(Third Edition)
- María Carina Roldán
- 342字
- 2025-04-04 17:49:50
Summarizing the Job entries that deal with files
In the previous subsections, you experimented with some of the many Job entries meant to deal with files. As you saw, they are mainly grouped under the File management and the Conditions categories. Most of these entries have a self-explanatory name and their use is quite intuitive. Here we have a brief summary for you to experiment with:

Note that this is not a full list of entries that deal with files. For the full list, you can explore the Spoon categories or read the documentation at https://help.pentaho.com/Documentation/8.0/Products/Data_Integration/Job_Entry_Reference.
There is some overlap in the purpose of some entries. This means that there is no single way to implement some tasks. As an example, the following are some other ways to move the music files, compared to what you did in the tutorial:
- Using the Copy Files entry. This entry has an option for removing the source files, which is equivalent to moving the files.
- Using the Copy Files entry followed by a Delete files entry.
There is no rule about when to use one or the other. You will find out by yourself which one is best for your requirements.
All the entries mentioned earlier can be used together with some Conditions entries, exactly as we did in the tutorial. Here are some entries that you can use:
- File Exists: Succeeds if a particular file or folder exists.
- Checks if files exist: Succeeds if all the listed files/folders exist.
- Checks if a folder is empty: By default, succeeds if the folder is empty. Alternatively, this entry can be configured to succeed if the folder doesn't contain files with a given pattern.
- Evaluate file metrics: Evaluates the number of files or the size of files in a list. There is a list of possible success criteria that can be configured in the Advanced tab of the entry.
For more examples of this subject, you can read Chapter 5, File Management, Pentaho Data Integration Cookbook - Second Edition by Packt Publishing, https://www.packtpub.com/big-data-and-business-intelligence/pentaho-data-integration-cookbook-second-edition