func GetAccessPaths()

in sys/windows/syscall_windows.go [189:210]


func GetAccessPaths() ([]string, error) {
	volumes, err := GetVolumes()
	if err != nil {
		return nil, errors.Wrap(err, "GetVolumes failed")
	}

	var paths []string
	for _, volumeName := range volumes {
		volumePaths, err := GetVolumePathsForVolume(volumeName)
		if err != nil {
			return nil, errors.Wrapf(err, "failed to get list of access paths for volume '%s'", volumeName)
		}
		if len(volumePaths) == 0 {
			continue
		}

		// Get only the first path
		paths = append(paths, volumePaths[0])
	}

	return paths, nil
}