mtimes

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PreserverMetadataFile = "mtimes.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Preserver

type Preserver struct {
	Logger bard.Logger
}

Preserver can be used to preserve the mtimes of a directory structure to a JSON file

func NewPreserver

func NewPreserver(logger bard.Logger) Preserver

func (Preserver) Preserve

func (p Preserver) Preserve(path string) error

func (Preserver) PreserveAll

func (p Preserver) PreserveAll(paths ...string) error

func (Preserver) Restore

func (p Preserver) Restore(path string) error

func (Preserver) RestoreAll

func (p Preserver) RestoreAll(paths ...string) error

type Record

type Record struct {
	Path  string
	MTime time.Time
}

Jump to

Keyboard shortcuts

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