ファイル
file_copy
ファイルをコピーします。
file_move
ファイルを移動 (名前変更) します。
file_delete
ファイルを削除します。
file_rename
同じディレクトリ内でファイルの名前を変更します。
file_exists
ファイルが存在するかどうかを確認し、結果を保存します。
- file_exists:
path: output/result.xlsx
save_as: file_found
- if:
cond: "file_found == true"
then:
- type: "File is ready"
file_read
テキストファイルの内容を変数に読み込みます。
file_write
文字列をファイルに書き込みます。
- file_write:
path: output/log.txt
content: "Run completed at {{ timestamp }}"
append: false # true で追記モード (デフォルト: false)
file_list
ディレクトリ内のファイルを一覧します。glob パターンで絞り込むことができます。