Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Convert absolute path into relative path. Clojure utility.
Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/hozumi
test/hozumi
.gitignore
README.md
epl-v10.html
project.clj

README.md

clj-conv-path

clj-conv-path is a Clojure utility which converts absolute path into relative path.

Usage

(use 'hozumi.conv-path)

(path->relative "/Users/fatrow/Documents")
=> "../../Documents"

;;You can specify base directory.   
(path->relative "/Users/fatrow/Documents" ".")
=> "../../Documents"
(path->relative "/Users/fatrow/Documents" "..")
=> "../Documents"

Installation

Leiningen [org.clojars.hozumi/clj-conv-path "1.0.1"]

Something went wrong with that request. Please try again.