Skip to content

getVolumeInformation

xiao edited this page Nov 8, 2025 · 1 revision

get information of the specific volume.

usage

callback:

fswin.getVolumeInformation(path, callback);

async:

var result = await fswin.getVolumeInformationAsync(path);

sync:

var result = fswin.getVolumeInformationSync(path);
  • path is the root path of a volume.
  • callback is a function that takes only one argument result.
  • result is an Object when the path is accessible or null otherwise.

example

var fswin = require('fswin');
var path = 'c:\\';

//sync
console.log(fswin.getVolumeInformationSync(path));

//async
fswin.getVolumeInformation(path, console.log);

Clone this wiki locally