function getFsStats(_path, cb) {
    assert.string(_path, 'path');
    assert.func(cb, 'callback');

    cb = once(cb);

    var p = path.normalize(_path);

    statvfs(p, function onStatVfs(err, stats) {
        if (err) {
            cb(err);
            return;
        }

        var available = stats.bsize * stats.bavail;
        stats.availableMB = Math.floor(available / (1024 * 1024));

        cb(null, stats);
    });
}
function getFsStats(_path, cb) {
    assert.string(_path, 'path');
    assert.func(cb, 'callback');

    cb = once(cb);

    var p = path.normalize(_path);

    statvfs(p, function onStatVfs(err, stats) {
        if (err) {
            cb(err);
            return;
        }

        var available = stats.bsize * stats.bavail;
        stats.availableMB = Math.floor(available / (1024 * 1024));

        cb(null, stats);
    });
}
function getFsStats ( _path , cb ) { assert . string ( _path , 'path' ) ; assert . func ( cb , 'callback' ) ; cb = once ( cb ) ; var p = path . normalize ( _path ) ; statvfs ( p , function onStatVfs ( err , stats ) { if ( err ) { cb ( err ) ; return ; } var available = stats . bsize * stats . bavail ; stats . availableMB = Math . floor ( available / ( 1024 * 1024 ) ) ; cb ( null , stats ) ; } ) ; }
/--- API
/ --- API