summaryrefslogtreecommitdiff
path: root/contrib/fs/dir.go
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/fs/dir.go')
-rw-r--r--contrib/fs/dir.go2
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
}