Introduction

  • The JITL RemoveFileJob job deletes one or more files. 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 RemoveFileJob and rerelevant arguments from the Wizard

or

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

Example

Download: jdRemoveFile.json

A RemoveFileJob 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/RemoveFileJob.xml

Further Resources


  • No labels