fix: open native directory picker for new instances
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//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")
|
||||
}
|
||||
Reference in New Issue
Block a user