Touch
Touch
Updates the last write time (modified time) of a file or directory to the current time.
This is similar to the touch
command in Unix-based systems.
If the file or directory does not exist, this element will create it (in the case of a file).
File Name
The full path of the file or folder to touch.
This can be an absolute path or a variable that resolves to a path.
- If this field is left blank, the element will use the current working file as the target.
- If the specified path points to a directory, the directory's last write time will be updated.
- If the path points to a file that does not exist, a new empty file will be created.
Behavior Notes
- Updates the "Last Write Time" metadata of the target.
- Will not modify file contents.
- Can be useful for triggering external watchers or syncing tools.
Example
To update the modified time of a file called processed.txt
:
- File Name:
/media/output/processed.txt
Or to touch the working file being processed in the flow:
- File Name: (leave blank)