User Tools

Site Tools


Sidebar

file:function_folder

folder()

Function that returns the folder location from an absolute path.

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

Usage

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

Parameters

Parameter Data type Required Description
absolutepath string True The full path to a file

Return Values

Value Meaning
folder The folder of the file (as a string), such as C:/temp/.
file/function_folder.txt · Last modified: 2017/05/25 10:21 (external edit)