Read/Write Files from Disk#
Use the Read/Write Files from Disk node to read and write files from/to the machine where Localmind Automate is running.
Operations#
- Read File(s) From Disk: Use this operation to retrieve one or more files from the computer that runs Localmind Automate.
- Write File to Disk: Use this operation to create a binary file on the computer that runs Localmind Automate.
Refer to the sections below for more information on configuring the node for each operation.
Read File(s) From Disk#
Configure this operation with these parameters:
- File(s) Selector: Enter the path of the file you want to read.
- To enter multiple files, enter a page path pattern. You can use these characters to define a path pattern:
*
: Matches any character zero or more times, excluding path separators.**
: Matches any character zero or more times, include path separators.?
: Matches any character except for path separators one time.[]
: Matches any characters inside the brackets. For example,[abc]
would match the charactersa
,b
, orc
, and nothing else.
- To enter multiple files, enter a page path pattern. You can use these characters to define a path pattern:
Refer to Picomatch's Basic globbing documentation for more information on these characters and their expected behavior.
Read File(s) From Disk options#
You can also configure this operation with these Options:
- File Extension: Enter the extension for the file in the node output.
- File Name: Enter the name for the file in the node output.
- MIME Type: Enter the file's MIME type in the node output. Refer to Common MIME types for a list of file extensions and their MIME types.
- Put Output File in Field: Enter the name of the field in the output data to contain the file.
Write File to Disk#
Configure this operation with these parameters:
- File Path and Name: Enter the destination for the file, the file's name, and the file's extension.
- Input Binary Field: Enter the name of the field in the node input data that will contain the binary file.
Write File to Disk options#
You can also configure this operation with these Options:
This operation includes a single option, whether to Append data to an existing file instead of creating a new one (turned on) or to create a new file instead of appending to existing (turned off).