mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
scp: add test case and document remote to remote transfers
This commit is contained in:
@@ -695,7 +695,8 @@ func (c *scpCommand) getFileUploadDestPath(scpDestPath, fileName string) string
|
||||
return scpDestPath
|
||||
}
|
||||
}
|
||||
// if the upload is recursive then the destination file is relative to the current scpDestPath
|
||||
// if the upload is recursive or scpDestPath has the "/" suffix then the destination
|
||||
// file is relative to scpDestPath
|
||||
return path.Join(scpDestPath, fileName)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user