Describe the bug
When enumerating partitions, if a mapped network is in the disconnected state the following error (warning) will be returned:
Error 0: The network path was not found.
To Reproduce
Map a network drive from a client to a server. When you run the following code, the remote drive will be returned.
Disconnect the network between the client and server. When you run the following code, the error listed above will be returned.
Describe the bug When enumerating partitions, if a mapped network is in the disconnected state the following error (warning) will be returned:
Error 0: The network path was not found.
To Reproduce
Expected behavior Ideally a network drive would return a disconnected state flag. However, as there is already precedence that ejectable devices can be missing it might be worth adding type 4 devices (DRIVE_REMOTE) to this group. https://github.com/shirou/gopsutil/blob/262afcf2e6b11944a3d23c9dbdbf21cc5c7602af/disk/disk_windows.go#L135-L138
Environment (please complete the following information):
/etc/os-release
and the result ofuname -a
]sw_vers
anduname -a
freebsd-version -k -r -u
anduname -a
]uname -a
]