Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (14 sloc) 0.482 kB

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"]

Jump to Line
Something went wrong with that request. Please try again.