lib/disks.js
function getDrives(command, callback) {
    var child = exec(
        command,
        function (err, stdout, stderr) {
            if (err) return callback(err);
            var drives = stdout.split('\n');

            drives.splice(0, 1);
            drives.splice(-1, 1);

            // Removes ram drives
            drives = drives.filter(function(item){ return item != "none"});
            callback(null, drives);
        }
    );
}
function getDrives(command, callback) {
    var child = exec(
        command,
        function (err, stdout, stderr) {
            if (err) return callback(err);
            var drives = stdout.split('\n');

            drives.splice(0, 1);
            drives.splice(-1, 1);

            // Removes ram drives
            drives = drives.filter(function(item){ return item != "none"});
            callback(null, drives);
        }
    );
}
function getDrives ( command , callback ) { var child = exec ( command , function ( err , stdout , stderr ) { if ( err ) return callback ( err ) ; var drives = stdout . split ( '\n' ) ; drives . splice ( 0 , 1 ) ; drives . splice ( - 1 , 1 ) ; // Removes ram drives drives = drives . filter ( function ( item ) { return item != "none" } ) ; callback ( null , drives ) ; } ) ; }
Execute a command to retrieve disks list.

@param command
@param callback
Execute a command to retrieve disks list .