walk

package
v0.0.0-...-be89b69 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryStructure

type DirectoryStructure struct {
	Level    int
	Name     string
	AbsPath  string
	RelPath  string
	IsDir    bool
	FileInfo FileInfo
	Children []DirectoryStructure
}

type FileInfo

type FileInfo struct {
	ModifiedAt time.Time
	Size       int64
}

type Walker

type Walker interface {
	Walk(sorter sort.DirEntrySorter) ([]DirectoryStructure, error)
}

func NewWalker

func NewWalker(dirAbsPath string) (Walker, error)

Jump to

Keyboard shortcuts

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