fsSize() fixed missing rw property (windows)
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ function fsSize(drive, callback) {
|
||||
}
|
||||
if (_windows) {
|
||||
try {
|
||||
const cmd = `Get-WmiObject Win32_logicaldisk | select Caption,FileSystem,FreeSpace,Size ${drive ? '| where -property Caption -eq ' + drive : ''} | fl`;
|
||||
const cmd = `Get-WmiObject Win32_logicaldisk | select Access,Caption,FileSystem,FreeSpace,Size ${drive ? '| where -property Caption -eq ' + drive : ''} | fl`;
|
||||
util.powerShell(cmd).then((stdout, error) => {
|
||||
if (!error) {
|
||||
let devices = stdout.toString().split(/\n\s*\n/);
|
||||
|
||||
Reference in New Issue
Block a user