Logo GenPRES

Path Module

Replaces the slashes and backslashes of a path with the directory separator of the platform, combines two paths, and returns the full path of a given path.

Nested modules

Modules Description

Tests

Holds the Unquote tests of the path normalize and combine functions.

Functions and values

Function or value Description

Path.combineWith p2 p1

Full Usage: Path.combineWith p2 p1

Parameters:
    p2 : string
    p1 : string

Returns: string

Combines two paths p1 and p2 into a single path. Example: "c:\temp" |> combineWith "test.txt" -> "c:\temp\test.txt"

p2 : string
p1 : string
Returns: string

Path.getFullPath path

Full Usage: Path.getFullPath path

Parameters:
    path : string

Returns: string
path : string
Returns: string

Path.normalize path

Full Usage: Path.normalize path

Parameters:
    path : string

Returns: string

Normalize backslashes to forward slashes Example: "./temp/test.txt" -> ".\temp\test.txt" (on Windows)

path : string
Returns: string

Type something to start searching.