X4 Produktdokumentation

Project Access

This adapter provides access to files within a project, process libraries, and adapters.

This adapter replaces the (7.4.0-en) Repository Explorer (deprecated).

Properties

Operation

Operation executed by the adapter

Possible values:

  • ReadFile: Read the file specified in the path parameter.

  • WriteFile: Write data from the previous process step to the target file specified in the path parameter.

  • AppendFile: Attach the file from the previous process step to the target file specified in the path parameter.

    If the target file specified in the path parameter does not exist, a file is created.

  • Exists: Check whether the files or folders specified in the path parameter exist. Returns an XML with metadata as a result.

  • CreateDirectory: Create a folder specified in the path parameter.

  • Delete : Delete files or folders specified in the path parameter.

  • ListDirectory: List the names and metadata of files and folders from the folder specified in the path parameter. Returns an XML with metadata as a result.

    The contents of the files are not listed.

  • Move: Move files or folders specified in the path parameter to the folder specified in the targetPath parameter.

  • Copy: Copy files or folders specified in the path parameter to the folder specified in the targetPath parameter.

Parameters

path

Path to the file or folder to be processed.

Possible values: Directory path

The project path must be specified without the project name.

Example: Processes/MyFolder

targetPath

For the Copy and Move operations : Target of the file/folder to copy or move

nameFilter

Filters the output of the ListDirectory operation by name

Possible values:

  • Any string (e.g. myFolder)

  • Wildcard *

Status values

1

The adapter operation was successful.

0

No file was found for the Exists operation.

-1

An error occurred while running the adapter.