ftpT

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteClient

type RemoteClient struct {
	// contains filtered or unexported fields
}

func NewSftpConnect

func NewSftpConnect(host string, port int, user, password string, timeout int) (client *RemoteClient, err error)

func (*RemoteClient) Chtimes added in v0.2.6

func (c *RemoteClient) Chtimes(path string, atime time.Time, mtime time.Time) error

func (*RemoteClient) Client added in v0.2.5

func (c *RemoteClient) Client() *sftp.Client

func (*RemoteClient) Close added in v0.2.5

func (c *RemoteClient) Close() error

func (*RemoteClient) CompareFile

func (c *RemoteClient) CompareFile(remoteFilePath, localFilePath string) bool

func (*RemoteClient) DownloadFile

func (c *RemoteClient) DownloadFile(remoteFilePath string, localFilePath string) error

func (*RemoteClient) FileExistsOnRemote added in v0.2.5

func (c *RemoteClient) FileExistsOnRemote(remoteFilePath string) bool

func (*RemoteClient) MakeRemoteDir added in v0.2.5

func (c *RemoteClient) MakeRemoteDir(remoteDirPath string) error

func (*RemoteClient) ReadDir

func (c *RemoteClient) ReadDir(remotePath string) ([]os.FileInfo, error)

func (*RemoteClient) RemoveRemoteFile added in v0.2.5

func (c *RemoteClient) RemoveRemoteFile(remoteFilePath string) error

func (*RemoteClient) RenameRemoteFile added in v0.2.5

func (c *RemoteClient) RenameRemoteFile(oldRemoteFilePath, newRemoteFilePath string) error

func (*RemoteClient) Stat

func (c *RemoteClient) Stat(remotePath string) (os.FileInfo, error)

func (*RemoteClient) UploadFile added in v0.2.5

func (c *RemoteClient) UploadFile(localFilePath, remoteFilePath string) error

func (*RemoteClient) WalkDir

func (c *RemoteClient) WalkDir(path string, getDir bool) []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL