diff --git a/dialog/file.go b/dialog/file.go index b0441067c5..69269efb73 100644 --- a/dialog/file.go +++ b/dialog/file.go @@ -474,8 +474,11 @@ func (f *fileDialog) setLocation(dir fyne.URI) error { d = buildDir buildDir = d + string(os.PathSeparator) } - - newDir := storage.NewFileURI(buildDir) + newURL := dir.Scheme() + "://" + filepath.ToSlash(buildDir) + newDir, err := storage.ParseURI(newURL) + if err != nil { + return err + } isDir, err := storage.CanList(newDir) if err != nil { return err