aboutsummaryrefslogtreecommitdiff
path: root/hotline/server.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-07 09:45:46 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-07 09:45:46 -0700
commitf6d08d0ad9198b4d5a9ee5fcf108015f927fd657 (patch)
treeffdec78093db9f29a84261e1f26199d01b583153 /hotline/server.go
parentdf2735b25a21d839746be31b43edb9e348086b0a (diff)
Remove use of relative paths
Diffstat (limited to 'hotline/server.go')
-rw-r--r--hotline/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/server.go b/hotline/server.go
index 0203dc9..1429c62 100644
--- a/hotline/server.go
+++ b/hotline/server.go
@@ -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())