make path more Unix like on windows servers

This commit is contained in:
George Xie 2017-03-01 15:54:43 -08:00 committed by John Eikenberry
parent 322a18e28b
commit 725c6ac61d
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ func handlePacket(s *Server, p interface{}) error {
return s.sendError(p, err)
}
f = filepath.Clean(f)
f = filepath.ToSlash(f) // make path more Unix like on windows servers
return s.sendPacket(sshFxpNamePacket{
ID: p.ID,
NameAttrs: []sshFxpNameAttr{{