User Tools

Site Tools


Sidebar

file:folder

.folder()

Method that returns the folder location from a file resource.

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

Usage

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

Parameters

This method has no parameters.

Return Values

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