by Mark C
Subroutine to split a file path into constituent parts.
Pass path to split in var "spath"
sdir - directory,no trailing "/"(unless input path is /file.ext).
sname - complete file name with any extension.
sbase - base name (sname minus extension).
sext - extension if any.
Example code included. Requires Automate 1.1.12 or later.
Rate and review within the app in the Community section.