getPathInfo

get an object with basic details of a file path

Syntax

getPathInfo(filepath)

Returns

returns (object) with properties

Parameters

filepath (string)
path to existing file

Usage

returns (object) with properties: 

- folder (string) parent folder
- filename (string) filename including extension
- path (string) full path to file
- ext (string) extension incl. dot '.' prefix
- basename (string) the file name without extension
- isfile (bool) true if path is a file, false is folder
- sep (string) the OS specific path separator