Files
cdp_hub/internal/platform/files/directory_picker_other.go
T

19 lines
398 B
Go

//go:build !windows
package files
import (
"context"
"errors"
)
var ErrSelectionCanceled = context.Canceled
type unsupportedDirectoryPicker struct{}
func NewDirectoryPicker() DirectoryPicker { return unsupportedDirectoryPicker{} }
func (unsupportedDirectoryPicker) ChooseDirectory(context.Context) (string, error) {
return "", errors.New("directory picker is only supported on Windows")
}