text →
directory() → text

Returns the directory information of a file path provided as argument. The value is always ending by / character. Returns empty if path does not contain root directory information or is null.

Parameters

This function has no parameters.

Examples

"docs/_data/function.json" | directory  "docs\\_data\\"

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


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