-
-
Notifications
You must be signed in to change notification settings - Fork 12
getVolumeInformation
xiao edited this page Nov 8, 2025
·
1 revision
get information of the specific volume.
callback:
fswin.getVolumeInformation(path, callback);async:
var result = await fswin.getVolumeInformationAsync(path);sync:
var result = fswin.getVolumeInformationSync(path);-
pathis the root path of a volume. -
callbackis a function that takes only one argumentresult. -
resultis an Object when the path is accessible or null otherwise.
var fswin = require('fswin');
var path = 'c:\\';
//sync
console.log(fswin.getVolumeInformationSync(path));
//async
fswin.getVolumeInformation(path, console.log);