Ir al contenido principal

toPosixPath

Callable

  • toPosixPath(nativePath: string): string

  • Converts a native OS path to a POSIX-style path.

    Transformations:

    1. Backslashes → forward slashes
    2. Windows drive letter C:\/C/ (colons are invalid in Emscripten VFS paths and cause ENOTDIR errno 28)

    On POSIX systems this is effectively a no-op.

    @see

    Parameters

    • nativePath: string

    Returns string