Files
file_copy
Copy a file.
file_move
Move (rename) a file.
file_delete
Delete a file.
file_rename
Rename a file within the same directory.
file_exists
Check whether a file exists and store the result.
- file_exists:
path: output/result.xlsx
save_as: file_found
- if:
cond: "file_found == true"
then:
- type: "File is ready"
file_read
Read a text file into a variable.
file_write
Write a string to a file.
- file_write:
path: output/log.txt
content: "Run completed at {{ timestamp }}"
append: false # true to append (default: false)
file_list
List files in a directory, optionally filtered by glob pattern.