Creating a Job that moves some files

Now we will create a sample Job that moves some files from one folder to another. For this exercise, let's suppose that we have a folder with the following files:

ARTIST_1.MP3ARTIST_2.MP3ARTIST_3.MP3ARTIST_4.MP3error_2.pngerror-jira.pngerror-vpn.pngMySongs.mp3SONG_2.MP3THEBESTSONG.MP3

Our Job will move the mp3 files with name starting with ARTIST to a new folder named MUSIC. If the folder doesn't exists, the Job will write a message to the log.  Let's work on that:

  1. Open Spoon, create a new Job, and drag the START entry to the work area.
  1. Now add the following entries: the Checks if files exist entry from the Conditions category, the Move Files entry from the File Management category, and the Abort entry ...

Get Learning Pentaho Data Integration 8 CE - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.