diff 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
line wrap: on
line diff
--- a/backends/directory.js
+++ b/backends/directory.js
@@ -115,6 +115,9 @@ backend.load = function(dir) {
 
 			for (var i in files) {
 				var file = files[i];
+				if (/^\./.test(file))
+					continue;
+
 				var nodeID = file.replace(/\.json$/, '');
 
 				var data = fs.readFileSync(dir+'/'+file).toString();