diff options
Diffstat (limited to 'contrib/fs')
-rw-r--r-- | contrib/fs/dir.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fs/dir.go b/contrib/fs/dir.go index 69d17e9..259ce1b 100644 --- a/contrib/fs/dir.go +++ b/contrib/fs/dir.go @@ -79,7 +79,7 @@ func ResolveDirectoryDefault( }) if idx < len(entries) && entries[idx].Name() == filename { - path := dirPath + "/" + filename + path := strings.TrimLeft(dirPath+"/"+filename, "./") file, err := fileSystem.Open(path) return path, file, err } |