Theia API Documentation v1.65.0
    Preparing search index...
    Index

    Constructors

    Properties

    base: string
    ext: string
    isAbsolute: boolean
    isRoot: boolean
    name: string
    root: undefined | Path
    separator: "/" = '/'

    Accessors

    • get hasDir(): boolean

      Returns true if this has a parent directory, false otherwise.

      This implementation returns true if and only if this is not the root dir and there is a path separator in the raw path.

      Returns boolean

    Methods

    • Converts the current path into a file system path.

      Parameters

      • Optionalformat: Format

        Determines the format of the path. If undefined, the format will be determined by the OS.backend.type value.

      Returns string

      A file system path.

    • Parameters

      • ...paths: string[]

        portions of a path

      Returns undefined | Path

      a new Path if an absolute path can be computed from the segments passed in + this.raw If no absolute path can be computed, returns undefined.

      Processes the path segments passed in from right to left (reverse order) concatenating until an absolute path is found.

    • Normalize path separator to use Path.separator

      Parameters

      • path: string

      Returns string

      Normalized string path

    • Tildify path, replacing home with ~ if user's home is present at the beginning of the path. This is a non-operation for Windows.

      Parameters

      • resourcePath: string
      • home: string

      Returns string

    • Untildify path, replacing ~ with home if ~ present at the beginning of the path. This is a non-operation for Windows.

      Parameters

      • resourcePath: string
      • home: string

      Returns string

    • Creates a windows path from the given path string. A windows path uses an upper case drive letter and backwards slashes.

      Parameters

      • path: string

        The input path

      Returns string

      Windows style path