int0h / npm-hddSpace

This module provides getting information about free space and size of hdds
8 stars 1 forks source link

Support Disk Labels for Windows #5

Open vasyl-shumskyi opened 6 years ago

vasyl-shumskyi commented 6 years ago

Any chance this awesome package will support disk labels for win32 platform?

It is a bit confusing to track what disk handles which data by C: D: E:

Thanks for your amazing work!

int0h commented 6 years ago

Hello! Thanks for your feedback! Yeah, that's possible.

I've made a separate branch, you can use it for now: npm i --save https://github.com/int0h/npm-hddSpace.git#win32-labels

Example of output:

{ parts:
   [ { free: 496592740352,
       size: 539028877312,
       place: 'C:',
       letter: 'C:',
       label: 'System' } ],
  total: { free: 496592740352, size: 539028877312 } }

I'm gonna merge it in master in future, but I'd like to do some refactoring before. You'll be able to update it from npm in a few weeks.

Please let me know if this solves your problem!

vasyl-shumskyi commented 6 years ago

Awesome! Thanks!