comparison backends/file.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 023f767662d3
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(file) { 24 backend.save = function(file) {
24 function sanitize(o) { 25 function sanitize(o) {
25 var n = {}; 26 var n = {};