Skip to content

Function: normalizeRoot()

normalizeRoot(root): string

Normalize a filesystem root for storage on BaseFileSystem.root.

Converts to POSIX, trims, and strips trailing slashes while preserving /, Windows drive roots (C:/), and URL-like scheme roots.

string

string