smbget

package module
v0.0.0-...-aeac44d Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProgressBar

func GetProgressBar(size int64, descr string, padding string) *progressbar.ProgressBar

Types

type SMBClient

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

func NewSMBClient

func NewSMBClient(username string, password string, domain string, server_addr string, share_name string) SMBClient

func (*SMBClient) CheckPath

func (c *SMBClient) CheckPath(path string) error

func (*SMBClient) Connect

func (c *SMBClient) Connect() (err error)

func (*SMBClient) Disconnect

func (c *SMBClient) Disconnect()

func (*SMBClient) GetDirectory

func (c *SMBClient) GetDirectory(remotePath string, localPath string, excludeExt []string) (map[string][]string, error)

func (*SMBClient) GetFile

func (c *SMBClient) GetFile(remotePath string, localPath string, progBarPad int) error

func (*SMBClient) ListDir

func (c *SMBClient) ListDir(remotePath string) ([]string, error)

func (*SMBClient) ReadFile

func (c *SMBClient) ReadFile(filePath string) (string, error)

Jump to

Keyboard shortcuts

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