Check Files Locked
Description
Check Files Locked iterates through a list of files to determine whether any are currently locked by another process. Use this process entry before attempting file operations to avoid failures — for example, verifying that input files are no longer being written to before a workflow reads them. The check works by attempting to rename each file to its own name, which fails on operating systems like Windows when the file is locked.
Configurations
| Field Name | Description |
|---|---|
| Process Entry name | Specify a unique name for the process entry, on the workspace area. A process entry can be placed on the canvas several times; and each instance of the entry must have a unique name. |
| Settings: Include subfolders | Enable this option to also check files in subfolders of specified folders |
| Settings: Copy previous results to args? | Pass the result rows of a previous process entry execution to the files list of this entry. |
| Files/Folders | Here you can list a series of files or folders with wildcards. The wildcards are Java Regular expressions. For instance .*.txt would check any file with a .txt extension. Please note that you can use the Delete/Edit buttons to edit the list. You can also use the File/Folder and Wildcard entries right above the list to add new entries, browse for files and so on |