Going to one level up in directory structure
This commit is contained in:
parent
098312ab71
commit
696388bb9a
|
@ -30,7 +30,7 @@ module.exports.createClient = function(options) {
|
|||
function FileSystemProvider(options) {
|
||||
options = options || {};
|
||||
if (!path.isAbsolute(options.root)) {
|
||||
options.root = path.join(path.dirname(require.main.filename), options.root);
|
||||
options.root = path.join(path.dirname(path.dirname(require.main.filename)), options.root);
|
||||
}
|
||||
this.root = options.root;
|
||||
var exists = fs.existsSync(this.root);
|
||||
|
|
Loading…
Reference in New Issue