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.

VariableDetails
Preset Choose the type of information to return on monitored file or directory:
  • Full path and filename · includes a full directory path and file name uniquely and fully referencing a file on the server.
  • Filename · returns only a file name without the directory name.
  • Absolute path · returns a full directory path in which the file is located.
  • Relative path · returns a partial or subfolder path (relative to the monitored directory) in which the file is located.
  • Watched directory · returns a full path of the monitored directory.
Example Shows what kind of information will be returned.

Example…

Assuming that DigitalOcean Spaces Watcher is set to monitor the following directory:
/video-footage-22/today …and then activated by
/video-footage-22/today/hd/intro072122.mp4
file, the returned variable values of each preset are listed below…

Full path and filename

PresetDetails
Full path and filename /video-footage-22/today/hd/intro072122.mp4

Filename

The Filename preset retrieves the file name without path.

OptionDetails
Filename intro072122.mp4
File intro072122
Extension .mp4

Absolute path

Absolute path returns the full path of monitored folder.

OptionDetails
Absolute path /video-footage-22/today/hd
Trailing slash /video-footage-22/today/hd/

Relative path

Relative path returns the path of a folder relative to the monitored folder.

OptionDetails
Relative path hd
File hd/intro072122.mp4

Watched directory

Watched directory returns the full path of directory monitored by DigitalOcean Spaces Watcher.

OptionDetails
Watched directory /video-footage-22/today
Trailing slash /video-footage-22/today/

Questions?

If you have any questions, please do not hesitate to contact our support team.