PathBuf.toPath

Retrieves the built path from the path buffer.

On Windows, the result contains backslashes as directory separators, even if forward slashes were used in input.

If the path buffer is empty, this function returns NULL.

class PathBuf
string
toPath
()

Return Value

Type: string

the path