Skip to content

escapePosixPath

escapePosixPath(str, replacement?): string

Defined in: packages/core/src/system/fs/escape-posix-path.ts:8

Escapes any characters in a path segment that are not allowed in file or directory names on POSIX-compliant systems.

string

The path segment to escape

string = "_"

string

The escaped path segment