rootfs

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package rootfs provides kernel-contained reads without idle directory handles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Root

type Root struct {
	// contains filtered or unexported fields
}

Root remembers a directory's identity and reopens it for each operation.

func Open

func Open(path string) (*Root, error)

func (*Root) FS

func (r *Root) FS() fs.FS

func (*Root) Open

func (r *Root) Open(name string) (*os.File, error)

func (*Root) ReadFile

func (r *Root) ReadFile(name string) ([]byte, error)

func (*Root) Stat

func (r *Root) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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