Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetDriveType (0.17 sec)

  1. internal/mountinfo/mountinfo_windows.go

    	wvolume := make([]uint16, len(path)+1)
    
    	if err := windows.GetVolumePathName(wpath, &wvolume[0], uint32(len(wvolume))); err != nil {
    		mountPointCache.Store(path, false)
    		return false
    	}
    
    	switch windows.GetDriveType(&wvolume[0]) {
    	case windows.DRIVE_FIXED, windows.DRIVE_REMOVABLE, windows.DRIVE_REMOTE, windows.DRIVE_RAMDISK:
    		// Recognize "fixed", "removable", "remote" and "ramdisk" drives as proper drives
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 2K bytes
    - Viewed (0)
Back to top