comparison backends/directory.js @ 29:e007a6364bf0

Fix an error when loading file/directory.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 01 Nov 2010 09:18:54 +0100
parents 7cfcd7d5796c
children b2faacfefb90
comparison
equal deleted inserted replaced
28:7cfcd7d5796c 29:e007a6364bf0
16 * You should have received a copy of the GNU Affero General Public License 16 * You should have received a copy of the GNU Affero General Public License
17 * along with PSĜS. If not, see <http://www.gnu.org/licenses/>. 17 * along with PSĜS. If not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20 var fs = require('fs'); 20 var fs = require('fs');
21 var Node = require('../nodes').Node;
21 var backend = exports; 22 var backend = exports;
22 23
23 backend.save = function(dir) { 24 backend.save = function(dir) {
24 if (!dir) 25 if (!dir)
25 dir = 'storage'; 26 dir = 'storage';