19 lines
398 B
Go
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")
|
|
}
|