Automation Workshop features the DigitalOcean Spaces Watcher Trigger that enables automated workflows to capture various events that happen on the remote cloud file system. Those events always have a file or directory information attached to it. They can be used as dynamic variables and can be accessed using the Variable Wizard.
The dynamic variables contain filename and path. These values can be accessed as a whole path or as separate elements, such as a filename, extension, or path.
Variable | Details |
---|---|
Preset | Choose the type of information to return on monitored file or directory:
|
Example | Shows what kind of information will be returned. |
Adjust | Streamline creation of Task workflows even further—instantly make quick variable adjustments such as in-place replacement (all, first, or last occurrence), trimming (whitespaces, quotes, etc.), or changing capitalization. Optionally, set a different display name. |
Example…
Assuming that DigitalOcean Spaces Watcher is set to monitor the following directory:/video-footage-23/today
…and then activated by/video-footage-23/today/hd/intro072123.mp4
file, the returned variable values of each preset are listed below…
Full path and filename
Preset | Details |
---|---|
Full path and filename | /video-footage-23/today/hd/intro072123.mp4 |
Filename
The Filename preset retrieves the file name without path.
Option | Details |
---|---|
Filename | intro072123.mp4 |
File | intro072123 |
Extension | .mp4 |
Absolute path
Absolute path returns the full path of monitored folder.
Option | Details |
---|---|
Absolute path | /video-footage-23/today/hd |
Trailing slash | /video-footage-23/today/hd/ |
Relative path
Relative path returns the path of a folder relative to the monitored folder.
Option | Details |
---|---|
Relative path | hd |
File | hd/intro072123.mp4 |
Watched directory
Watched directory returns the full path of directory monitored by DigitalOcean Spaces Watcher.
Option | Details |
---|---|
Watched directory | /video-footage-23/today |
Trailing slash | /video-footage-23/today/ |
Questions?
If you have any questions, please do not hesitate to contact our support team.