Type
meta-lisp
(-> text-t text-t)Description
Returns path relative to the current working directory (cwd).
Note: cwd is always absolute, so path must be absolute as well. Passing a relative path will trigger an assertion error.
Examples
meta-lisp
(path-relative-to-cwd "/home/user/package/src") ;; e.g. => "src"
(path-relative-to-cwd "/home/user") ;; e.g. => ".."