▼ |  | Unstable

1 | Guidelines for developing unstable libraries
2 | Bytes
3 | Contracts
4 | Exceptions
5 | Lists
6 | Net
7 | Path
8 | Source Locations
9 | Strings
10 | Structs
11 | Syntax
12 | Anaphoric Contracts
13 | Finding Mutated Variables
14 | Find
15 | Interface-Oriented Programming for Classes
16 | Sequences
17 | Hash Tables
18 | Match
19 | Skip Lists
20 | Interval Maps
21 | GUI libraries

On this page:

explode-path*
path-without-base
directory-part
build-path-unless-absolute
strip-prefix-ups

top← prev up next →

### 7`` Path

(require unstable/path)

This library is unstable; compatibility will not be maintained. See Unstable for more information.

(explode-path* p) → (listof path-element?)
p : path-string?

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.

(strip-prefix-ups p) → (listof path-element?)
p : (listof path-element?)

Removes all the prefix ".."s from p.
top← prev up next →