internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootLength

func RootLength(p string) int

func SplitPath

func SplitPath(p string) (rootName, rest string)

Types

type Common

type Common struct {
	RootFor  func(root string) fs.FS
	Realpath func(path string) string
}

func (*Common) DirectoryExists

func (vfs *Common) DirectoryExists(path string) bool

func (*Common) FileExists

func (vfs *Common) FileExists(path string) bool

func (*Common) GetAccessibleEntries

func (vfs *Common) GetAccessibleEntries(path string) (result vfs.Entries)

func (*Common) ReadFile

func (vfs *Common) ReadFile(path string) (contents string, ok bool)

func (*Common) RootAndPath

func (vfs *Common) RootAndPath(path string) (fsys fs.FS, rootName string, rest string)

func (*Common) Stat

func (vfs *Common) Stat(path string) vfs.FileInfo

func (*Common) WalkDir

func (vfs *Common) WalkDir(root string, walkFn fs.WalkDirFunc) error

Jump to

Keyboard shortcuts

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