Function that returns the folder location from an absolute path.
Note: The path is always returned with forward slashes as directory separators.
var myfile = "C:/temp/myfile.txt"; var folder = folder(myfile);
Parameter | Data type | Required | Description |
---|---|---|---|
absolutepath | string | True | The full path to a file |
Value | Meaning |
---|---|
folder | The folder of the file (as a string), such as C:/temp/ . |