1 | var path = require('path'),
|
2 | fs = require('fs');
|
3 |
|
4 |
|
5 | function absolutePath(relPath){
|
6 | return path.join(__dirname, '../../../../', relPath);
|
7 | }
|
8 |
|
9 | function isDirectory(path){
|
10 | var stats = fs.statSync(path);
|
11 | return stats.isDirectory();
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 | module.exports = {
|
17 | absolutePath: absolutePath,
|
18 | absolute: absolutePath,
|
19 | isDirectory: isDirectory
|
20 | }; |
\ | No newline at end of file |