Mercurial > psgxs
diff backends/directory.js @ 33:62cbb1c49bc5
Fix publish; add owner metadata field; add HTTP module and Atom HTTP module.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 05 Nov 2010 14:01:45 +0100 |
parents | b2faacfefb90 |
children | dcf1f09f8cee |
line wrap: on
line diff
--- a/backends/directory.js +++ b/backends/directory.js @@ -117,7 +117,7 @@ backend.load = function(dir) { var file = files[i]; var nodeID = file.replace(/\.json$/, ''); - var data = fs.readFileSync(dir+'/'+file); + var data = fs.readFileSync(dir+'/'+file).toString(); var obj = eval('('+data+')'); backend.list[nodeID] = endParsing(obj);