-
Notifications
You must be signed in to change notification settings - Fork 18
Description
My english is so bad, so I may sound incoherent or rude. So I'll get right to the point. i see in the in drive.js you are using df -kP. its a great commant for linux users (and servers) but when you try to run that on Windows console and the spam are inevitable

I check on forums and test by myself and i found the "equivalent" of df -kP and is get-psdrive –psprovider filesystem. Actually the command give you the Free Mem, Used Mem and Root, (not root or Administrator permission required)
well its posible to get compatibilty. just add a conditional for windows like this (or someting like this)
Lines 38 to 43 in 4136218
| info: function (diskName) { | |
| if (!diskName) { | |
| diskName = '/' | |
| } | |
| return exec('df -kP').then(function (out) { |
//required 'os' dependency
info: function (diskName) {
if (!diskName) {
diskName = '/'
}
if (os.version().toLowerCase().includes('windows')) return exec('get-psdrive –psprovider filesystem', (out) => {})
else (os.version().toLowerCase().includes('linux')) return exec('df -kP', (out) => {}) {}i hope you have planed to add windows support on osu.drive. is very strange found good libraries with this feature.