-
-
Notifications
You must be signed in to change notification settings - Fork 12
getLogicalDriveList
xiao edited this page Nov 8, 2025
·
1 revision
get all logical drive letters and their types.
callback:
fswin.getLogicalDriveList(callback);async:
var result = await fswin.getLogicalDriveListAsync();sync:
var result = fswin.getLogicalDriveListSync();-
callbackis a function that takes only one argumentresult. -
resultis 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);