]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/server.go
Prune unused code
[rbdr/mobius] / hotline / server.go
index 0203dc9e67d4b02230ba58fb9739010d83fffaba..1429c62f47e2bbeb5011db6f4e18ba8f0959d8ba 100644 (file)
@@ -765,7 +765,7 @@ func (s *Server) TransferFile(conn net.Conn) error {
                i := 0
                _ = filepath.Walk(fullFilePath+"/", func(path string, info os.FileInfo, _ error) error {
                        i += 1
-                       subPath := path[basePathLen-2:]
+                       subPath := path[basePathLen:]
                        s.Logger.Infow("Sending fileheader", "i", i, "path", path, "fullFilePath", fullFilePath, "subPath", subPath, "IsDir", info.IsDir())
 
                        fileHeader := NewFileHeader(subPath, info.IsDir())