You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 30, 2022. It is now read-only.
// SendFile copies a single local file to the remote server.// The time and permission will be set with the value of the source file.func (s*SCP) SendFile(srcFile, destFilestring) error {
srcFile=filepath.Clean(srcFile)
destFile=realPath(filepath.Clean(destFile))
returnrunSourceSession(s.client, destFile, false, s.SCPCommand, false, true, func(s*sourceSession) error {
osFileInfo, err:=os.Stat(srcFile)
iferr!=nil {
returnfmt.Errorf("failed to stat source file: err=%s", err)
}
...
}
use: osFileInfo, err := os.Stat(srcFile)
should replace by os.Lstat to compatible link file
The text was updated successfully, but these errors were encountered:
use:
osFileInfo, err := os.Stat(srcFile)
should replace by
os.Lstat
to compatible link fileThe text was updated successfully, but these errors were encountered: