Execute on file changed

You can execute an action when a file is changed in a directory. The argument filename is pre-populated for you.

actions:
  - title: Print names of new files
    shell: "echo Filename: {{ filename }}  Filedir: {{ filedir }}  Filext: {{ fileext }}"
    arguments:
      - name: filename
        type: unicode_identifier_sentence
      - name: filedir
        type: unicode_identifier_sentence
      - name: fileext
        type: unicode_identifier_sentence

    execOnFileChangedInDir:
      - /home/user/Downloads/

File in dir arguments

Predefined Argument Example

filepath

/Downloads/txt1.txt

filedir

/Downloads

filename

test1.txt

fileext

.txt