Introduction

  • The JITL FileExistsJob job checks if one or more files or a directory exist. The job belongs to the category of JS7 - JITL File Operation Jobs.

  • The JITL File Operation Jobs support commonly used operations such as copy, rename, move, delete and check for the existence of files. Any file operations are implemented with Java and are available for any OS platforms supported by JS7 Agents. In comparison with operating system commands like copy, cp, move, mv, del and rm, that behave differently on different operating systems, the handling and behavior of File Operation Jobs is identical for all supported operating systems.

  • Most File Operation Jobs support "regular expressions" to allow filtering of matching file names.

  • File Operation Jobs are frequently used in workflows to check for the existence of files, to rename and copy/move files to different locations.

Usage

When defining the job either:

  • invoke the Wizard that is available from the Job Properties tab in the Configuration view and select the JITL FileExistsJob and relevant arguments from the Wizard

or

  • specify the JITL job class and com.sos.jitl.jobs.file.FileExistsJob Java class name and add arguments as explained in the documentation below.

Example

Download: jdFileExists.json

A FileExistsJob configuration can look like this:

Documentation

The Job Documentation including the full list of arguments can be found under: https://www.sos-berlin.com/doc/JS7-JITL/FileExistsJob.xml

Further Resources


  • No labels