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

24 lines
330 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
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
}