So what about leaning on require('fs').stats
method and the .stats property
// "" (empty string) as a property key is valid json
var fs = {
"a" : {
// maybe not ALL of those properties make sense in a "json file system",
// so only the meaningful ones should exist
"/type": "directory",
// is one of ['file', 'directory', 'blockdevice' , 'characterdevice', 'symlink', 'FIFO', 'socket']
"/dev": 2114,