adam-gui/vendor/fyne.io/fyne/v2/internal/driver/mobile/folder.go
2024-04-29 19:13:50 +02:00

24 lines
330 B
Go

package mobile
import (
"fmt"
"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, fmt.Errorf("specified URI is not listable")
}
return &lister{uri}, nil
}