Skip to content

Commit

Permalink
Fixed path manipulation to be for RFC 3986 path
Browse files Browse the repository at this point in the history
  • Loading branch information
brucealthompson committed Oct 19, 2024
1 parent 9856635 commit 8953166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dialog/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,12 @@ func (f *fileDialog) setLocation(dir fyne.URI) error {
buildDir = "/"
d = "/"
} else if i > 0 {
buildDir = filepath.Join(buildDir, d)
buildDir = buildDir + "/" + d
} else {
d = buildDir
buildDir = d + string(os.PathSeparator)
buildDir = d + "/"
}
newURL := dir.Scheme() + "://" + filepath.ToSlash(buildDir)
newURL := dir.Scheme() + "://" + buildDir
newDir, err := storage.ParseURI(newURL)
if err != nil {
return err
Expand Down

0 comments on commit 8953166

Please sign in to comment.