diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-05-06 14:51:30 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-05-06 15:00:10 -0600 |
commit | 5b849792511ea3d838e8dc12561994f07514374a (patch) | |
tree | 1ed220bdb713f5fa631681576696c0eecedff8d8 /contrib/fs | |
parent | b6d785af563db161aa1f4329175b9530aeb38c9b (diff) |
don't start in-FS paths with ./
this was tricky, it didn't fail until I got it on a FreeBSD host
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 } |