X4 Produktdokumentation

Checksum Creator

This adapter creates checksums for files in a folder and outputs the checksums together with the file names and file properties as an XML document.

Properties

Operation

Determines which operation the adapter executes

Possible values:

  • Count CRC: Use the CRC algorithm to form the checksums.

  • Count Adler: Use Adler algorithm to form the checksums

Parameters

path

Folder for whose contents checksums are to be created

Possible values: Any valid character string (e.g. %USER_COLLECTION%/Project/Folder)

useRecursion

Handle folder recursively

Possible values:

  • yes: Include elements in subfolders

  • no: Restrict to the items in the specified folder

Status values

1

The operation was executed successfully.

-1

The operation failed due to a technical error.

Input

This adapter does not require any input from the previous process step.

Output

Example of an output XML document with file names, checksums and an included subfolder:

<list>
    <directory lastModifiedAsString="30.09.2009 15:22:47 MESZ"
       lastModifiedAsLong="1254316967185" size="0" hidden="false">Folder
    </directory>
    <file lastModifiedAsString="30.09.2009 15:22:47 MESZ"
       lastModifiedAsLong="1254316967185" size="123" hidden="false"
       checksum="1376899901">Folder\File.txt</file>
    <file lastModifiedAsString="30.09.2009 15:22:27 MESZ"
       lastModifiedAsLong="1254316947494" size="6" hidden="false"
       checksum="63888547">Textfile.txt</file>
    <file lastModifiedAsString="30.09.2009 15:22:39 MESZ"
       lastModifiedAsLong="1254316959989" size="6" hidden="false"
       checksum="4270080073">XMLDocument.xml</file>
</list>