rootpath

package
v0.0.0-...-714bc2e Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File string

File .

func NewFile

func NewFile(f string) *File

NewFile .

func (*File) String

func (f *File) String() string

String .

type Options

type Options struct {
	MaxDepth uint
}

Options .

type Root

type Root string

Root .

func NewRoot

func NewRoot(root string) *Root

NewRoot .

func (*Root) Dirs

func (r *Root) Dirs(opts ...func(o *Options)) ([]*Root, error)

Dirs .

func (*Root) Files

func (r *Root) Files(opts ...func(o *Options)) ([]*File, error)

Files .

func (*Root) IsDir

func (r *Root) IsDir() bool

IsDir .

func (*Root) String

func (r *Root) String() string

String .

func (*Root) Walk

func (r *Root) Walk(fn func(path string, info fs.FileInfo) error, opts ...func(o *Options)) error

Walk .

Jump to

Keyboard shortcuts

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