idun/vendor/github.com/pkg/sftp/server_unix.go
kekskurse 8ad61755e6 init
2023-10-12 10:20:53 +02:00

16 lines
225 B
Go

//go:build !windows && !plan9
// +build !windows,!plan9
package sftp
import (
"path"
)
func (s *Server) toLocalPath(p string) string {
if s.workDir != "" && !path.IsAbs(p) {
p = path.Join(s.workDir, p)
}
return p
}