Skip to content

Function: normalizeDatabricksRoot()

normalizeDatabricksRoot(root, options?): string

Normalize a Databricks filesystem root to an absolute POSIX path.

  • catalog.schema.volume → /Volumes/catalog/schema/volume
  • /Volume/... → /Volumes/... (singular typo / shorthand)
  • ~ / ~/... → /Workspace/Users/<userName>/... (needs NormalizeDatabricksRootOptions.userName)
  • strips trailing slashes (except /)

For ~ without a known username, use resolveDatabricksRoot.

string

NormalizeDatabricksRootOptions = {}

string