folder()

Function that returns the folder location from an absolute path to a file.

Note: The path is always returned with forward slashes as directory separators.

The function folder() is located in the file file.jsxinc.

Usage

var myfilepath = "C:/myfile.txt";
var folder = folder(myfilepath);

Parameters

Parameter Data type Required Description
absolutepath String The full path to a file.

Return values

Value Meaning
folder The folder of the file (as a string), such as C:/.