server/lib/filer-www/json-handler.js
function handleDir(fs, path, res) {
  var sh = new fs.Shell();

  sh.ls(path, {recursive: true}, function(err, listing) {
    if(err) {
      log.error(err, 'Unable to get listing for path `%s`', path);
      handle404(path, res);
      return;
    }
    write(listing, res);
  });
}
function handleDir(fs, path, res) {
  var sh = new fs.Shell();

  sh.ls(path, {recursive: true}, function(err, listing) {
    if(err) {
      log.error(err, 'Unable to get listing for path `%s`', path);
      handle404(path, res);
      return;
    }
    write(listing, res);
  });
}
function handleDir ( fs , path , res ) { var sh = new fs . Shell ( ) ; sh . ls ( path , { recursive : true } , function ( err , listing ) { if ( err ) { log . error ( err , 'Unable to get listing for path `%s`' , path ) ; handle404 ( path , res ) ; return ; } write ( listing , res ) ; } ) ; }
Send recursive dir listing
Send recursive dir listing