string_to_raw_path#
- NodeTree.string_to_raw_path(node: str) str [source]#
Converts a string representation of a node into a raw node path string.
The function does not check if the node exists, but if the node exist the returned raw node path exists in the underlying dictionary.
If the string does not represent a absolute path (leading slash) the
prefix_hide
will be added to the node string.- Parameters:
node (str) – A string representation of the node.
- Returns:
Raw node path that can be used a key in the internal dictionary.
- Raises:
ValueError – If the node is a relative path and no prefix can be added.
- Return type:
str