fsh

package
v0.0.0-...-6a4bd28 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSItem

type FSItem struct {
	FullPath string
	ItemName string
	ItemType FSItemType
	// contains filtered or unexported fields
}

func CreateDir

func CreateDir(name string, children ...*FSItem) *FSItem

func CreateFile

func CreateFile(name string) *FSItem
func CreateLink(name string, link string) *FSItem

func CreateRoot

func CreateRoot(t *testing.T, rootPath string, children ...*FSItem) *FSItem

func (*FSItem) CountChildren

func (ci *FSItem) CountChildren() int

func (*FSItem) Data

func (ci *FSItem) Data() []byte

func (*FSItem) Get

func (ci *FSItem) Get(name string) *FSItem

func (*FSItem) GetExistChildrenRecursive

func (ci *FSItem) GetExistChildrenRecursive(root *FSItem) map[string]FSItemType

func (*FSItem) Join

func (ci *FSItem) Join(name string) string

type FSItemType

type FSItemType uint
const (
	FSItemDir FSItemType = iota
	FSItemFile
	FSItemLink
)

Jump to

Keyboard shortcuts

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