filesystem

package module
v0.0.0-...-b6bf700 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 10 Imported by: 0

README

fsutil

This package provides some nicities for working with go-git/go-billy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst, src billy.Filesystem) error

Copy recursively from src to root

func FileNames

func FileNames(repo DirReader) ([]string, error)

FileNames returns name of non directory files For now this includes symlinks... this may change.

func HasDotPrefixedSegment

func HasDotPrefixedSegment(fp string) bool

func ReadFromTarball

func ReadFromTarball(r io.Reader, fs billy.Filesystem) error

func SumFileNameAndContents

func SumFileNameAndContents(fs billy.Filesystem) (string, error)

func Walk

func Walk(fs billy.Filesystem, root string, walkFn filepath.WalkFunc) error

func WriteToTarball

func WriteToTarball(wr io.Writer, fs billy.Filesystem) (deferErr error)

Types

type DirReader

type DirReader interface {
	ReadDir(path string) ([]os.FileInfo, error)
}

Jump to

Keyboard shortcuts

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