File.prototype.link()

Get/set a file’s link property.

Syntax

// Get file.link() string // Set file.link(link string) File

Parameters

link string

The file’s desired link state.

Description

Get/set a file’s link property.

A file link is a pointer to another file. Some link types are used to mount volumes.

See the filesystem specification for details on the various link types.

Examples

Getting link property of non-linked file.

Create a simple volume.