fs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 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 Directory

type Directory interface {
	GetName() string
	GetAbsolutePath() string
	GetAllFiles() []*File
	GetMatchingFiles(filetype FileType) ([]*File, error)
	RepopulateFiles(ctx context.Context) error
}

func NewDirectory

func NewDirectory(ctx context.Context, absolute string) (Directory, error)

type File

type File struct {
	Dir          string
	Absolute     string
	Name         string
	LastModified time.Time
	FileType     FileType
}

func NewFile

func NewFile(absolutePath string, lastModified time.Time) *File

func (*File) IsOlderThan

func (f *File) IsOlderThan(other *File) bool

type FileType

type FileType int
const (
	Rom FileType = iota
	Save
	State
	Other
)

Jump to

Keyboard shortcuts

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