text →
root() → text

Returns the root directory information of a file path provided as argument. Returns empty if path does not contain root directory information or is null.

Parameters

This function has no parameters.

Examples

"docs/_data/function.json" | root  ""

Kind: Function
Scope: io
Aliases: path-to-root


This site uses Just the Docs, a documentation theme for Jekyll.