Static
ensureEnsures that the given path is absolute. If it is not, it resolves it against the provided rootAbsolutePath or the current working directory.
The path to ensure is absolute.
Optional
rootAbsolutePath: stringThe root path to resolve against if the path is not absolute.
The absolute path.
Static
sanitizeSanitizes a directory path by replacing backslashes with forward slashes and optionally ensuring it has a trailing slash.
The directory path to sanitize.
Whether to ensure the path ends with a trailing slash. Defaults to true.
The sanitized directory path.
Static
sanitizeSanitizes a file path by replacing backslashes with forward slashes.
The file path to sanitize.
The sanitized file path.
Utility class for handling FS path operations.