cristiammercado / node-disk-info

Node module to get disk information in Windows, Linux, Mac, FreeBSD & OpenBSD (works with Electron).
MIT License
60 stars 15 forks source link

Darwin: volumes containing spaces are truncated #31

Open warpdesign opened 1 year ago

warpdesign commented 1 year ago

If a Volume contains a space, for ex.:

/dev/disk5s1 316576 310128 6448 98% /Volumes/React-Explorer 2.3.1

Only the first part of the string would be added into the Drive, resulting in an incorrect mounted property:

Filesystem: /dev/disk5s1 Blocks: 316576 Used: 310128 Available: 6448 Capacity: 98% Mounted: /Volumes/React-Explorer