Task catalogue / File Utilities
Verified against Flow 5.0.0-beta.39
The File Utilities category has 7 tasks: 6 in the palette and 1 that isn't. Each entry shows the task's latest revision, the one the palette adds. See Reading an entry.
Check file contains string.
check-file-contains-stringtemplateParameters
| Label | Name | Type | Required | Default | Helper text |
|---|---|---|---|---|---|
| Path | path |
Text | No | ||
| Regular Expression | expression |
Text | No | ||
| Flags | flags |
Text | No | ||
| Fail If Not Found | failIfNotFound |
Boolean | No |
No results.
Check file or folder exists and fail if not found.
check-file-or-folder-existstemplateParameters
| Label | Name | Type | Required | Default | Helper text |
|---|---|---|---|---|---|
| Path | path |
Text | No | ||
| Regular Expression | expression |
Text | No |
No results.
Create file in worker.
create-filetemplateParameters
| Label | Name | Type | Required | Default | Helper text |
|---|---|---|---|---|---|
| File Path | path |
Text | No | ||
| File Content | content |
Text Editor | No | ||
| Creation Directories | createDir |
Boolean | No | false |
Recursively create path as needed |
No results.
Read file and add contents to tasks result parameter
read-file-to-parametertemplateParameters
| Label | Name | Type | Required | Default | Helper text |
|---|---|---|---|---|---|
| File Path | path |
Text | No |
Results
| Name | Description |
|---|---|
content |
File content as a result parameter |
Replace String in File.
replace-string-in-filetemplateParameters
| Label | Name | Type | Required | Default | Helper text |
|---|---|---|---|---|---|
| Path | path |
Text | No | ||
| Regular Expression | expression |
Text | No | ||
| Replacement String | replaceString |
Text | No | ||
| Flags | flags |
Text | No | ||
| Fail If Not Found | failIfNotFound |
Boolean | No |
No results.
Replace parameters between tokens. The default start and end delimiters allow you to replace parameters defined following the parameter reference syntax.
replace-tokens-in-filestemplateParameters
| Label | Name | Type | Required | Default | Helper text |
|---|---|---|---|---|---|
| File Path | path |
Text | No | $(params.deploy-kubernetes-path) |
|
| Files | files |
Text | No | $(params.deploy-kubernetes-file) |
|
| Start Delimiter | tokenStartDelimiter |
Text | No | \$\(params\. |
Enter regex string, escaping special characters. |
| End Delimiter | tokenEndDelimiter |
Text | No | \) |
Enter regex string, escaping special characters. |
| Replacement Values | allParams |
Text Area | No | $(allParams) |
New line delimited key value pairs |
| Fail If Not Found | failIfNotFound |
Boolean | No | false |
Results
| Name | Description |
|---|---|
files |
List of files where the token was replaced |
These tasks are in the catalogue, but the palette doesn't list them because they aren't active. Admins see them in Admin › Tasks.
| Task | Slug | Status | Revision | Description |
|---|---|---|---|---|
| Read Parameters from File | read-parameters-from-file |
inactive |
1 | Read parameters from file |