dirview

package
v1.20240717.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDirHidden []*regexp.Regexp = []*regexp.Regexp{
	regexp.MustCompile(`^\.[^/]`),
}
View Source
var DefaultHidden []*regexp.Regexp = []*regexp.Regexp{
	regexp.MustCompile(`^\.[^/]`),
}

Functions

func MatchList

func MatchList(regs []*regexp.Regexp, tgt string) bool

Types

type DirViewStamp

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

func NewDirViewStamp

func NewDirViewStamp(rt_fs fs.FS, roots []upath.UPath, fmt string, hide []*regexp.Regexp,
	path_hide []*regexp.Regexp) (*DirViewStamp, error)

func (*DirViewStamp) DirModTime

func (dvs *DirViewStamp) DirModTime(rel_dir string) (time.Time, bool)

func (*DirViewStamp) Get

func (dvs *DirViewStamp) Get(dir_rpath string, use_cwd bool) []*FileStamp

type FileStamp

type FileStamp struct {
	Name  string
	Path  string
	Stamp string
}

Jump to

Keyboard shortcuts

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