1//go:build !windows && !plan9 2// +build !windows,!plan9 3 4package sftp 5 6import ( 7 "path" 8) 9 10func (s *Server) toLocalPath(p string) string { 11 if s.workDir != "" && !path.IsAbs(p) { 12 p = path.Join(s.workDir, p) 13 } 14 15 return p 16}