diff --git a/action_execution.adoc b/action_execution.adoc index 14638fce3..518b18273 100644 --- a/action_execution.adoc +++ b/action_execution.adoc @@ -132,6 +132,8 @@ actions: - /home/user/Downloads/ ---- +include::action_execution_onfileindir_arguments.adoc[] + [#exec-file-changed] === Execute on file changed @@ -141,14 +143,21 @@ You can execute an action when a file is changed in a directory. The argument `f ---- actions: - title: Print names of new files - shell: echo {{ filename }} + shell: "echo Filename: {{ filename }} Filedir: {{ filedir }} Filext: {{ fileext }}" arguments: - name: filename - type: ascii_sentence + type: unicode_identifier_sentence + - name: filedir + type: unicode_identifier_sentence + - name: fileext + type: unicode_identifier_sentence + execOnFileChangedInDir: - /home/user/Downloads/ ---- +include::action_execution_onfileindir_arguments.adoc[] + [#exec-on-calendar] === Execute on calendar file diff --git a/action_execution_onfileindir_arguments.adoc b/action_execution_onfileindir_arguments.adoc new file mode 100644 index 000000000..a5bcf18b5 --- /dev/null +++ b/action_execution_onfileindir_arguments.adoc @@ -0,0 +1,11 @@ +==== File in dir arguments + +|=== +| Predefined Argument | Example + +| `filepath` | /Downloads/txt1.txt +| `filedir` | /Downloads +| `filename` | test1.txt +| `fileext` | .txt +|=== +