Skip to content

Commit

Permalink
fileargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Apr 26, 2024
1 parent 4519a1f commit 30d98c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
13 changes: 11 additions & 2 deletions action_execution.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ actions:
- /home/user/Downloads/
----

include::action_execution_onfileindir_arguments.adoc[]

[#exec-file-changed]
=== Execute on file changed

Expand All @@ -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

Expand Down
11 changes: 11 additions & 0 deletions action_execution_onfileindir_arguments.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
==== File in dir arguments

|===
| Predefined Argument | Example

| `filepath` | /Downloads/txt1.txt
| `filedir` | /Downloads
| `filename` | test1.txt
| `fileext` | .txt
|===

0 comments on commit 30d98c1

Please sign in to comment.