aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authortionis <git@tionis.dev>2022-09-27 16:12:32 +0200
committertionis <git@tionis.dev>2022-09-27 16:12:32 +0200
commited72cffc98c123ee3ed7781dcebf794215df31be (patch)
tree1b371094675518a80ffcc90b67fb1c5f99ce724d /doc
parentMerge pull request #78 from autumnull/master (diff)
fixed path/relpath and added example for it in documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/path.mdz1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/path.mdz b/doc/path.mdz
index 866dbd7..2e272ee 100644
--- a/doc/path.mdz
+++ b/doc/path.mdz
@@ -29,4 +29,5 @@ path/delim # -> ":" on posix, ";" on windows
(path/join "some/path" "../thing/file.txt") # -> "some/thing/file.txt"
(path/abspath? "/home/blah") # -> true
(path/abspath "file.txt") # -> "/home/me/cwd/file.txt"
+(path/relpath "a/nested/directory/with/a/few/children" "a/nested/directory/with/different/children") # -> "../../../different/children"
```