var files = File.list(this.dirname);
- print(files);Seed.quit();
+ //print(files);Seed.quit();
for (var i =0 ; i < files.length;i++) {
var fn = files[i];
-
- if (!fn.match(/.json$/)) {
+ print(fn);
+ if (!fn.match(/\.json$/)) {
continue;
}
var str = File.read(this.dirname + '/' + fn);
if (!str || !str.length) {
+ print("EMPTY");
continue; // empty file.
}
}
+// print(JSON.stringify(this.projects.length));Seed.quit();
this.projects.sort(function(a,b) {
if (a.getName() == b.getName()) {
},
update : function(proj) {
- Seed.print(JSON.stringify(proj));
+ //Seed.print(JSON.stringify(proj));
var found = false;
this.projects.forEach( function(p) {
if (proj == p) {
-
\ No newline at end of file
+