Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b8975 commit 01291f7Copy full SHA for 01291f7
source/file/file.go
@@ -30,7 +30,10 @@ func (f *File) Open(url string) (source.Driver, error) {
30
31
// concat host and path to restore full path
32
// host might be `.`
33
- p := u.Host + u.Path
+ p := u.Opaque
34
+ if len(p) == 0 {
35
+ p = u.Host + u.Path
36
+ }
37
38
if len(p) == 0 {
39
// default to current directory if no path
0 commit comments