rootfs

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 8 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diskfree

func Diskfree(drive string, freeBytesAvailable *uint64) error

func LocalMountPoint

func LocalMountPoint(loc path.Local) (string, error)

func OnUnix

func OnUnix() bool

func OnWindows

func OnWindows() bool

Types

type FS

type FS struct {
	*mixfs.FS
}

func New

func New() (*FS, error)

func (*FS) Abs

func (fsys *FS) Abs(p path.Relative) path.Absolute

func (*FS) Rel added in v0.14.0

func (fsys *FS) Rel(p path.Local) path.Relative

Rel returns the relative path from the given local path, so that it can be used inside the rootfs

Jump to

Keyboard shortcuts

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