JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/realpath



    cfunction
    src/core/os.c on line 1972, column 1

    (os/realpath path)

    Get the absolute path for a given path, following ../, ./, and 
    symlinks. Returns an absolute path as a string. Will raise an error 
    on Windows.


1 exampleSign in to add an example
Loading...
(os/realpath ".") # => "/home/jgarte"

(os/realpath "Downloads") # => "/home/jgarte/Downloads"
jgartePlayground