File.pathParts
File.pathParts($path) -> map
Description
Parse a path string and return a Map of its parts.
File.getParts('users/user123/profile.png') // { // dirPathParts: [ // 'users', // 'user123', // ], // dirPath: 'users/user123', // fileExt: 'png', // fileName: 'profile.png', // fileNameShort: 'profile', // path: 'users/user123/profile.png', // }