FileReference

FileReference

Manages a reference to an existing or non-existing file, using either or both absolute or relative paths. Once constructed, this class is immutable.

Members

fullPath :string

Gets the absolute path of this file reference.
Type:
  • string

relativePath :string

Gets the relative path of this file reference.
Type:
  • string

Methods

(static) createFromFullAndRelativePaths(fullPath, relativePath) → {FileReference}

Returns a new file reference. This returns a new instance even if the path does not exist.
Parameters:
Name Type Description
fullPath string A full path. This parameter cannot be null.
relativePath string A relative path. This parameter can be null.
Returns:
A file reference to the specified paths.
Type
FileReference

(static) createFromFullPath(fullPath) → {FileReference}

Returns a new file reference. This returns a new instance even if the path does not exist.
Parameters:
Name Type Description
fullPath string A full path.
Returns:
A file reference to the specified path.
Type
FileReference