lib/FileSystem.js
function list(p) {
    var def = Q.defer();
    fs.readdir(p, def.makeNodeResolver());
    return def.promise;
}
function list(p) {
    var def = Q.defer();
    fs.readdir(p, def.makeNodeResolver());
    return def.promise;
}
function list ( p ) { var def = Q . defer ( ) ; fs . readdir ( p , def . makeNodeResolver ( ) ) ; return def . promise ; }
Promise wrapper for fs.list
@param p
Promise wrapper for fs . list