Documentation
¶
Index ¶
Constants ¶
View Source
const ( //FileToken crate file token FileToken = 'C' //DirToken create directory token DirToken = 'D' //TimestampToken timestamp token TimestampToken = 'T' //EndDirToken end of dir token EndDirToken = 'E' //WarningToken warning token WarningToken = 0x1 //ErrorToken error token ErrorToken = 0x2 // StatusOK StatusOK = 0x0 )
View Source
const ( //DefaultDirMode folder mode default DefaultDirMode = os.ModeDir | 0755 )
View Source
const (
//DefaultPort default SSH port
DefaultPort = 22
)
Variables ¶
This section is empty.
Functions ¶
func ParseFileInfo ¶
ParseFileInfo returns new info from SCP response
Types ¶
type SCP ¶
type SCP struct {
// contains filtered or unexported fields
}
func (*SCP) Download ¶
Download downloads files from remote to local It is different from linux scp, if local path exists, it must be the same type with remote path If you are downloading a regular file, the local path must contain file name otherwise scp will use the last element of path as its file name
Click to show internal directories.
Click to hide internal directories.