happy-opfs • Docs
happy-opfs / assertAbsolutePath
function assertAbsolutePath(path): void
Asserts that the provided path is an absolute path.
Parameter | Type | Description |
---|---|---|
path |
string |
The file path to validate. |
void
Will throw an error if the path is not an absolute path.