Interface PathMeta

Interface describing metadata for a path

Hierarchy

Properties

base: string

The file name including extension (if any) such as 'index.html'

depth: number

The depth of this path

dir: string

The full directory path such as '/home/user/dir' or 'c:\path\dir'

ext: string

The file extension (if any) such as '.html'

name: string

The file name without extension (if any) such as 'index'

path: string

The normalized string representation of the path

root: string

The root of the path such as '/' or 'c:'

segments: string[]

Methods

  • Checks if this path equals another path

    Parameters

    • other: Path

      the path to compare with

    • Optional options: {
          ignoreFileExtension?: boolean;
      }

      options

      • Optional ignoreFileExtension?: boolean

    Returns boolean

  • boolean value indicating if the path exists or not

    Returns boolean

  • boolean value indicating if the path has a [[root]]

    Returns boolean

  • boolean value indicating if the pathis [[empty]]

    Returns boolean

  • boolean value indicating if the path is [[root]] path

    Returns boolean

  • boolean value representing if the path can be created on the disk

    Returns boolean

Generated using TypeDoc