fckeuspy-go/vendor/fyne.io/fyne/v2/internal/driver/mobile/folder.go

24 lines
333 B
Go

package mobile
import (
"errors"
"fyne.io/fyne/v2"
)
type lister struct {
fyne.URI
}
func (l *lister) List() ([]fyne.URI, error) {
return listURI(l)
}
func listerForURI(uri fyne.URI) (fyne.ListableURI, error) {
if !canListURI(uri) {
return nil, errors.New("specified URI is not listable")
}
return &lister{uri}, nil
}