walker

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ignored added in v2.0.44

func Ignored(name string) bool

Types

type LocalFile

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

func (*LocalFile) FullPath

func (f *LocalFile) FullPath() string

func (*LocalFile) Info

func (f *LocalFile) Info() os.FileInfo

func (*LocalFile) RelPath

func (f *LocalFile) RelPath() string

type RemoteFile

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

func (*RemoteFile) Info

func (f *RemoteFile) Info() os.FileInfo

func (*RemoteFile) PutioFile

func (f *RemoteFile) PutioFile() *putio.File

func (*RemoteFile) RelPath

func (f *RemoteFile) RelPath() string

type Walker

type Walker struct {
	LocalPath      string
	RemoteFolderID int64
	TempDirName    string
	Client         *putio.Client
	RequestTimeout time.Duration
}

func (*Walker) Walk

func (w *Walker) Walk(ctx context.Context) (localFiles []*LocalFile, remoteFiles []*RemoteFile, err error)

Jump to

Keyboard shortcuts

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