Hierarchy (view full)

Constructors

Properties

absolute: string

The resolved absolute filesystem path represented by this object.

separator: "\\" | "/" = sep

Accessors

  • get [toStringTag](): string
  • Returns string

  • get dirname(): string
  • Returns string

    absolute path to parent directory.

  • Returns boolean

    true if this.absolute is a symlink.

  • get name(): string
  • Returns string

    name of this file or directory.

  • get parent(): Directory
  • Returns Directory

    absolute path to parent directory.

  • get real(): this
  • Returns this

  • get relativePath(): string
  • Returns string

  • get short(): string
  • Returns string

  • get shortPath(): string
  • Returns string

  • get target(): this
  • Returns this

  • get url(): URL
  • Returns URL

    this.absolute represented as a file:/// URL

Methods

  • Turn this entry into a symlink to an absolute path.

    Parameters

    Returns this

  • Type Parameters

    • T

    • U extends (new (path) => T)

    Parameters

    • Ctor: U

    Returns T

    an instance of the passed class, pointing to this.absolute, and (hopefully) knowing what to do with the data at this.absolute.

  • Returns this

  • Parameters

    • Optional ext: string

    Returns string

    name of this file or directory.

  • Returns this

  • Type Parameters

    • T

    Parameters

    • command: ((argv) => T)
        • (argv): T
        • Parameters

          • argv: string[]

          Returns T

    Returns T

  • Returns Stats

  • Parameters

    • Rest ...fragments: string[]

    Returns File

    Path to directory relative to this.

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • Optional name: string

    Returns boolean

    true if a directory exists at this.absolute

  • Parameters

    • Optional name: string

    Returns boolean

    true if a file exists at this.absolute

  • Parameters

    • Optional ext: string

    Returns string[]

  • Create the parent directory of this.absolute.

    Returns this

  • Turn this entry into a symlink to Path.

    Parameters

    • path: string

    Returns this

  • Turn this entry into a symlink to a relative path.

    Parameters

    • path: string

    Returns this

  • Parameters

    • base: string = ...

    Returns string

  • Parameters

    • target: string = ...

    Returns string

  • Parameters

    • path: string

    Returns string

  • Parameters

    • Rest ...fragments: string[]

    Returns Directory

    Path to file relative to this.

Generated using TypeDoc