From d021425af3371c86da43382d08089030675a35c9 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Tue, 20 Nov 2018 13:08:29 -0800 Subject: [PATCH] do not ignore A: and B: drives on windows from https://www.howtogeek.com/122891/what-are-the-windows-a-and-b-drives-used-for/ >if your computer does not have floppy disk drives, you can assign A and B to volumes --- disk/disk_windows.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/disk/disk_windows.go b/disk/disk_windows.go index 326bc1f..242a706 100644 --- a/disk/disk_windows.go +++ b/disk/disk_windows.go @@ -83,9 +83,6 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro for _, v := range lpBuffer { if v >= 65 && v <= 90 { path := string(v) + ":" - if path == "A:" || path == "B:" { // skip floppy drives - continue - } typepath, _ := windows.UTF16PtrFromString(path) typeret, _, _ := procGetDriveType.Call(uintptr(unsafe.Pointer(typepath))) if typeret == 0 {