Is there a way of reading how much space is left on a user's machine?


I’m developing an app in Electron and Cordova simultaneously, and am looking for parity between the two. One of the features that is present in Cordova, but not Electron is seeing the remaining space on a device. Maybe it doesn’t make so much sense on desktop, but it’s a feature I’d like to include for completion’s sake.

I’ve looked through the standard Node modules, and can’t see anything that would give me what I need without bringing in a bunch of dependencies.

Has anyone managed to do this, and how can I do the same?



i recommend looking through child process and try to find some way of using the terminal for requesting the system to find disk space. i mean, you have to access the system to find out informations about the machine.