Parameters
- tarFileName
- The full path of the Tar archive. Cannot be empty.
- replaceExistingFiles
- Boolean value indicating whether existing files should be replaced in the destination Tar archive.
- recursive
- Boolean value indicating whether files contained within sub-folders of filesToTar should be added to the Tar archive.
- preservePaths
- Boolean value indicating whether the directory structure should be preserved in the destination Tar archive.
- filesToTar
- The list of file paths to add to the Tar archive. Must contain at least one file.