fsSize() fixed missing rw property (windows)

This commit is contained in:
Sebastian Hildebrandt
2023-07-26 10:24:38 +02:00
parent 9e3ab2beaf
commit 180f671bb8
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -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/);