| title |
description |
variables |
Changed |
Trigger for when a File/Folder Watcher is Changed |
| name |
type |
description |
value |
watcherFolder |
string |
The folder you're watching for changes |
C:\Desktop\Example-Folder |
|
| name |
type |
description |
value |
watcherFilter |
string |
The filter of this watcher |
*.* |
|
| name |
type |
description |
value |
fullPath |
string |
The full path of the file |
C:\Desktop\Example-Folder\Example.txt |
|
| name |
type |
description |
value |
fileName |
string |
The full file name including the file extension |
Example.txt |
|
| name |
type |
description |
value |
fileSize |
number |
The file size in bytes |
1 MB > 1000000 bytes |
|
| name |
type |
description |
value |
changeType |
string |
The change type |
Changed |
|
| name |
type |
description |
value |
empty |
boolean |
Is the file empty? |
true |
|
| name |
type |
description |
value |
lineCount |
number |
The total number of lines |
1 |
|
| name |
type |
description |
value |
line# |
string |
Each line of the file |
Hello World! |
|
| name |
type |
description |
value |
lineEscaped# |
string |
Each line of the file escaped for URL's |
Hello%20World%21 |
|
|
::field-group
::field{name=Watcher type=Select}
Select a watcher from the Services -> File/Folder Watcher tab.
- Select `Any` to trigger on **any watcher**
::tip
You can quickly register a new watcher by clicking the `Create File Watcher` button!
::
::
::
Using a file: this triggers when the content of a selected file changes.
Using a folder: this triggers when a file from the selected folder changes.