[io.path.get-folder]
io.path.get-folder is a slot in the io namespace, in Hyperlambda, the language of Magic Cloud. Strips the filename from a path and returns just its folder portion (e.g. ‘/foo/bar/baz.txt’ becomes ‘/foo/bar/’).
- Value (
file-path), required: Path to inspect - Returns: Resolves to the folder portion of the supplied path
Guide: How to use [io.path.get-folder]
JSON declaration
This is the complete declaration of io.path.get-folder, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "io.path.get-folder",
"description": "Strips the filename from a path and returns just its folder portion (e.g. '/foo/bar/baz.txt' becomes '/foo/bar/')",
"signature": {
"input": {
"kind": "file-path",
"description": "Path to inspect",
"required": true,
"mode": "ValueOrExpression"
},
"output": {
"mode": "Value",
"kind": "folder-path,text",
"description": "Resolves to the folder portion of the supplied path"
}
}
}
← io.folder.move |
all io.* slots |
io.stream.close → |