tree

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyModes

func ApplyModes(root *os.Root, base string, nodes []Node) error

func Copy

func Copy(source *os.Root, sourceName string, destination *os.Root, destinationName string) error

func CopyForStorage

func CopyForStorage(source *os.Root, sourceName string, destination *os.Root, destinationName string) error

func Remove

func Remove(root *os.Root, name string) error

Types

type Inspection

type Inspection struct {
	Path  string
	Kind  Kind
	Mode  fs.FileMode
	Nodes []Node
}

func Inspect

func Inspect(root *os.Root, name string) (Inspection, error)

func ValidateCopySource

func ValidateCopySource(root *os.Root, name string) (Inspection, error)

type Kind

type Kind string
const (
	KindAbsent    Kind = "absent"
	KindFile      Kind = "file"
	KindDirectory Kind = "directory"
	KindSymlink   Kind = "symlink"
)

type Node

type Node struct {
	Path string      `json:"path"`
	Kind Kind        `json:"kind"`
	Mode fs.FileMode `json:"mode"`
}

Jump to

Keyboard shortcuts

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