WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: localPath.

File.prototype.localPath()

Returns a file’s path relative to the website root.

Syntax

file.localPath() string

Description

Returns a file’s path excluding the domain.

Examples

LocalPath of a root file.

localPath of a non-root file.