Mercurial > psgxs
comparison backends/directory.js @ 34:dcf1f09f8cee
Add message to publish module and various fixes.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 05 Nov 2010 15:31:13 +0100 |
parents | 62cbb1c49bc5 |
children | 023f767662d3 |
comparison
equal
deleted
inserted
replaced
33:62cbb1c49bc5 | 34:dcf1f09f8cee |
---|---|
113 | 113 |
114 backend.list = {}; | 114 backend.list = {}; |
115 | 115 |
116 for (var i in files) { | 116 for (var i in files) { |
117 var file = files[i]; | 117 var file = files[i]; |
118 if (/^\./.test(file)) | |
119 continue; | |
120 | |
118 var nodeID = file.replace(/\.json$/, ''); | 121 var nodeID = file.replace(/\.json$/, ''); |
119 | 122 |
120 var data = fs.readFileSync(dir+'/'+file).toString(); | 123 var data = fs.readFileSync(dir+'/'+file).toString(); |
121 | 124 |
122 var obj = eval('('+data+')'); | 125 var obj = eval('('+data+')'); |