Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/diskinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

var exec = require('child_process').exec;
var os = require('os');
var aDrives = [];

/**
* Returns an array of drives or calls callback
Expand All @@ -18,6 +17,7 @@ var aDrives = [];
* the array of drives, set null if no callback
*/
exports.getDrives = function(callback) {
var aDrives = [];

switch (os.platform().toLowerCase()) {
case 'win32':
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Benoit Gauthier",
"name": "diskinfo",
"description": "Nodejs module to get drive information, tested on linux centos and windows vista",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"main": "./lib/diskinfo.js",
"scripts": {
Expand All @@ -25,7 +25,8 @@
},
"os": [
"linux",
"win32"
"win32",
"darwin"
],
"devDependencies": {
}
Expand Down