From 180f671bb83ca69a90c7e2e75fe96f7ccf5b7784 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 26 Jul 2023 10:24:38 +0200 Subject: [PATCH] fsSize() fixed missing rw property (windows) --- CHANGELOG.md | 3 ++- docs/history.html | 5 +++++ docs/index.html | 2 +- lib/filesystem.js | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffbf2d8..6835eb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,7 +82,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | -| 5.18.7 | 2023-07-25 | `cpu()` added AMD ZEN 4 base frequencies | +| 5.18.9 | 2023-07-26 | `fsSize()` fixed missing rw property (windows) | +| 5.18.8 | 2023-07-25 | `cpu()` added AMD ZEN 4 base frequencies | | 5.18.7 | 2023-07-12 | `osInfo()` added macOS Sonoma code name (mac OS) | | 5.18.6 | 2023-06-28 | `graphics()` fixed catched errors (mac OS) | | 5.18.5 | 2023-06-26 | `cpu()` fixed parsing (mac OS) | diff --git a/docs/history.html b/docs/history.html index 31bed5c..22fcf08 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.18.9 + 2023-07-26 + fsSize() fixed missing rw property (windows) + 5.18.8 2023-07-25 diff --git a/docs/index.html b/docs/index.html index c9f4034..c3a48aa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.18.8
+
New Version: 5.18.9
diff --git a/lib/filesystem.js b/lib/filesystem.js index 7be68ac..d626658 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -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/);