question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

si.blockDevices and si.fsSize intermittently returns network mapped drives

See original GitHub issue

Describe the bug si.blockDevices and si.fsSize intermittently returns network mapped drives. Most of the time doesn’t return the network mapped drives.

To Reproduce Steps to reproduce the behavior:

  1. used functions: si.blockDevices and si.fsSize, both returns or not returns network mapped drives

async function fsSize() { var data = await si.fsSize() console.log(data) }

or

async function blockDevices() { var data = await si.blockDevices() console.log(data) }

Current Output Returns “C:”, “D:”

Expected behavior Returns “C:”, “D:”, “N:” I double checked and N: is right mapped

Environment (please complete the following information):

  • systeminformation package version: 5.1.1
  • OS: Windows 10 20H2
  • Hardware: Dell G3 notebook

Additional context Would suggest to implement a new function:

getNetworkMappedDrives()

and use the:

Get-ItemProperty -Path "HKCU:\Network\*"

To return network mapped drives from Windows Registry.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sebhildebrandtcommented, Feb 9, 2021

@dverzolla will try this tomorrow … thank you for your investigation!

0reactions
sebhildebrandtcommented, Feb 12, 2021

@dverzolla yes, I can confirm this behavior. As drives are mapped per user, this should be absolutely fine … closing this for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

systeminformation - npm
Lightweight collection of 50+ functions to retrieve detailed hardware, system and OS information. simple to use; get detailed information about ...
Read more >
@jedithepro/system-info - npm package | Snyk
@jedithepro/system-info. System and OS information library for Node.js, and SystemInfo API. Quick Start. Lightweight collection of 40+ ...
Read more >
Mapped drives disappear after logoff or reboot.
1. Open Computer by clicking the Start button, and then clicking Computer. 2. Click Map network drive.
Read more >
The Linux System Administrator's Guide
The Linux kernel consists of several important parts: process management, memory management, hardware device drivers, filesystem drivers, network management ...
Read more >
Storage Administration Guide Red Hat Enterprise Linux 7
Also, the block device underlying the file system must support physical discard ... Prints the map of disk blocks used by files in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found