]>
Commit | Line | Data |
---|---|---|
1 | 'use strict' | |
2 | ||
3 | // module PursLoader.Path | |
4 | ||
5 | var path = require('path'); | |
6 | ||
7 | function relative(from) { | |
8 | return function(to){ | |
9 | return path.relative(from, to); | |
10 | }; | |
11 | } | |
12 | exports.relative = relative; | |
13 | ||
14 | ||
15 | function joinPath(a) { | |
16 | return function(b) { | |
17 | return path.join(a, b); | |
18 | }; | |
19 | } | |
20 | exports.joinPath = joinPath; | |
21 | ||
22 | exports.resolve = path.resolve; | |
23 | ||
24 | exports.dirname = path.dirname; |