In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/egfs"

func CloneFS

func CloneFS(ctx context.Context, dstdir string, rootdir string, archive fs.FS) (err error)

func DirExists

func DirExists(path string) bool

DirExists returns true IFF a non-directory file exists at the provided path.

func FileExists

func FileExists(path string) bool

FileExists returns true IFF a non-directory file exists at the provided path.

func MkDirs

func MkDirs(perm fs.FileMode, paths ...string) (err error)