Skip to content

getLogicalDriveList

xiao edited this page Nov 8, 2025 · 1 revision

get all logical drive letters and their types.

usage

callback:

fswin.getLogicalDriveList(callback);

async:

var result = await fswin.getLogicalDriveListAsync();

sync:

var result = fswin.getLogicalDriveListSync();
  • callback is a function that 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