Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
Make directories absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
pvorb committed Feb 17, 2012
1 parent 04977d7 commit 55bd75f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bread.js
Expand Up @@ -6,6 +6,7 @@ var mongo = require('mongodb');
var append = require('append');
var clone = require('clone');
var Set = require('Set');
var path = require('path');

var write = require('./write.js');

Expand All @@ -16,6 +17,9 @@ var x = function () {};
var bread = function(conf, cb) {

var dir = conf.directories;
for (var key in dir) {
dir[key] = path.resolve(conf.root, dir[key]);
}

// Open connection to MongoDB
new mongo.Db(conf.db.name, new mongo.Server(conf.db.host, conf.db.port))
Expand Down

0 comments on commit 55bd75f

Please sign in to comment.