Versions in this module Expand all Collapse all v0 v0.0.1 Jan 2, 2017 Changes in this version + func KeyFilePath(filename string) (path string) + func UserHomeDir() (homedir string) + type CallbackFunc func(sftpConnection *SFTPConnection, filePath string, fileName string) + type SFTPConnection struct + IsVerbose bool + SftpClient *sftp.Client + func ConnectWithKeyFile(host, username, privkeyfile string) (*SFTPConnection, error) + func ConnectWithPassword(host, username, password string) (*SFTPConnection, error) + func (sftpConnection *SFTPConnection) Close() error + func (sftpConnection *SFTPConnection) DownloadFiles(source string, target string) error + func (sftpConnection *SFTPConnection) RemoveFile(sourcePath string) error + func (sftpConnection *SFTPConnection) UploadFile(sourcePath, targetPath string) error + func (sftpConnection *SFTPConnection) WalkDirectories(path string, callback CallbackFunc) error + func (sftpConnection *SFTPConnection) WalkFiles(path string, callback CallbackFunc) error