var path = '../data/snippets';

// TODO list this folder

var fs = require('fs');
var os = require('os');

var path = '../data/snippets';

var folders = fs.readdirSync(path);
var files = {};

folders.forEach(function (folder) {
    files[folder] = fs.readdirSync(path+'/'+folder);
});

console.log(files);

Read files with NodeJS script
Read files with NodeJS script
