sfnetwalk

package
v0.0.0-...-9799ab4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

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

func (*FileInfo) IsDir

func (self *FileInfo) IsDir() bool

func (*FileInfo) ModTime

func (self *FileInfo) ModTime() time.Time

func (*FileInfo) Mode

func (self *FileInfo) Mode() os.FileMode

func (*FileInfo) Name

func (self *FileInfo) Name() string

func (*FileInfo) Size

func (self *FileInfo) Size() int64

func (*FileInfo) Sys

func (self *FileInfo) Sys() interface{}

type FileInfoForMarshal

type FileInfoForMarshal struct {
	Name  string
	IsDir bool
}

func NewFileInfoForMarshal

func NewFileInfoForMarshal(init os.FileInfo) *FileInfoForMarshal

func (*FileInfoForMarshal) GetFileInfo

func (self *FileInfoForMarshal) GetFileInfo() *FileInfo

type OsFileInfoSort

type OsFileInfoSort []os.FileInfo

func (OsFileInfoSort) Len

func (self OsFileInfoSort) Len() int

func (OsFileInfoSort) Less

func (self OsFileInfoSort) Less(i, j int) bool

func (OsFileInfoSort) Swap

func (self OsFileInfoSort) Swap(i, j int)

type SFNetWalk

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

func NewSFNetWalk

func NewSFNetWalk(
	project string,
	cache *cache01.CacheDir,
	log *logger.Logger,
	exclude_paths []string,
	maxdepth int,
) (*SFNetWalk, error)

func (*SFNetWalk) GetDownloadingURIForFile

func (self *SFNetWalk) GetDownloadingURIForFile(name string) (string, error)

func (*SFNetWalk) ListDir

func (self *SFNetWalk) ListDir(pth string) (
	[]os.FileInfo,
	[]os.FileInfo,
	error,
)

func (*SFNetWalk) ListDirNotCached

func (self *SFNetWalk) ListDirNotCached(pth string) (
	[]os.FileInfo,
	[]os.FileInfo,
	error,
)

func (*SFNetWalk) LogE

func (self *SFNetWalk) LogE(txt string)

func (*SFNetWalk) LogI

func (self *SFNetWalk) LogI(txt string)

func (*SFNetWalk) Tree

func (self *SFNetWalk) Tree(pth string) (map[string]os.FileInfo, error)

func (*SFNetWalk) Walk

func (self *SFNetWalk) Walk(
	pth string,
	target func(
		dir string,
		dirs []os.FileInfo,
		files []os.FileInfo,
	) error,
) error

Jump to

Keyboard shortcuts

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