by Mark C
Version 1 (April 4, 2016)
Download (318 downloads)
Subroutine to split a file path into constituent parts.
Pass path to split in var "spath"
Returns:
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.
5 stars | 2 | |
4 stars | 1 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.