What is Incisor?
Tutorials
Key Concepts
Reddit
Stack Overflow
Deprecation Schedule

Paths()

Object housing functionality manipulate paths including 'splitPath', 'getFileName', and 'getParentDirectory'. [NON-INSTANTIABLE]

new Paths()

MEMBERS

applicationSupportPath :string

The path to the application support directory. [REQUIREMENT: unpublished projects only]

desktopPath :string

The path to the desktop. [REQUIREMENT: unpublished projects only]

projectPath :string

The path to the project directory. [REQUIREMENT: unpublished projects only]

METHODS

getFileName(path) returns {string}

Returns the name of the last path component of the provided path. All paths in IncisorĀ® use '' as a path separator.

Parameters:
Name Type Attributes Default Description
path string    

The path to return the last path component of.

Returns:
string

getParentDirectory(path) returns {string}

Returns the provided path minus the last path component. All paths in IncisorĀ® use '' as a path separator.

Parameters:
Name Type Attributes Default Description
path string    

The path to return the last path component of.

Returns:
string

splitPath(path) returns {Array.<string>}

Returns an array of separated path components. All paths in IncisorĀ® use '' as a path separator.

Parameters:
Name Type Attributes Default Description
path string    

The path to split.

Returns:
Array.<string>