Skip to content

Commit

Permalink
Include "DRIVE_REMOTE" volumes on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 authored May 8, 2017
1 parent f7c38fa commit b59c2a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disk/disk_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func Partitions(all bool) ([]PartitionStat, error) {
if typeret == 0 {
return ret, syscall.GetLastError()
}
// 2: DRIVE_REMOVABLE 3: DRIVE_FIXED 5: DRIVE_CDROM
// 2: DRIVE_REMOVABLE 3: DRIVE_FIXED 4: DRIVE_REMOTE 5: DRIVE_CDROM

if typeret == 2 || typeret == 3 || typeret == 5 {
if typeret == 2 || typeret == 3 || typeret == 4 || typeret == 5 {
lpVolumeNameBuffer := make([]byte, 256)
lpVolumeSerialNumber := int64(0)
lpMaximumComponentLength := int64(0)
Expand Down

0 comments on commit b59c2a2

Please sign in to comment.