Skip to content

getLogicalDriveList and getLogicalDriveListSync

xiao edited this page Sep 29, 2021 · 1 revision

get all logical drive letters and their types.

usage

async:

fswin.getLogicalDriveList(callback);

sync:

var result = fswin.getLogicalDriveListSync();
  • callback is a function to make callback with. it takes only one argument result.
  • result is an object to store all drive letters and their types.

example

var fswin = require('fswin');

//test the sync version
console.log(fswin.getLogicalDriveListSync());

//test the async version
fswin.getLogicalDriveList(console.log);
Clone this wiki locally