Path resolver
[io/file/Path resolver]
Resolves a file system path into a fully qualified one relative to the current working directory. Example:
"dir1"@0 received on
path
"/home/user1/.cranq/runtime/dir1"@0 sent on
resolved
("/home/user1/.cranq/runtime" being the current working directory)
Keywords: relative path, absolute path, to absolute
Input ports
path:
string
Receives the path to resolve to absolute path. Example:
"dir1"
"dir1/foo.txt"
(To keep the application portable use "/" as path separator.)
Output ports
resolved:
string
Sends the resolved absolute path. Example:
"/home/user1/.cranq/runtime/dir1"
"/home/user1/.cranq/runtime/dir1/foo.txt"
Last updated