UNPKG

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