On this page:
explode-path*
path-without-base
directory-part
build-path-unless-absolute
strip-prefix-ups

23 Path

 (require unstable/path)

This library is unstable; compatibility will not be maintained. See Unstable: May Change Without Warning for more information.

Like normalize-path, but does not resolve symlinks.

(path-without-base base p)  (listof path-element?)
  base : path-string?
  p : path-string?
Returns, as a list, the portion of p after base, assuming base is a prefix of p.

(directory-part p)  path?
  p : path-string?
Returns the directory part of p, returning (current-directory) if it is relative.

(build-path-unless-absolute base p)  path?
  base : path-string?
  p : path-string?
Prepends base to p, unless p is absolute.

Removes all the prefix ".."s from p.