-
-
Notifications
You must be signed in to change notification settings - Fork 12
getLogicalDriveList and getLogicalDriveListSync
xiao edited this page Sep 29, 2021
·
1 revision
get all logical drive letters and their types.
async:
fswin.getLogicalDriveList(callback);
sync:
var result = fswin.getLogicalDriveListSync();
-
callback
is a function to make callback with. it takes only one argumentresult
. -
result
is an object to store all drive letters and their types.
var fswin = require('fswin');
//test the sync version
console.log(fswin.getLogicalDriveListSync());
//test the async version
fswin.getLogicalDriveList(console.log);