dirhash2

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Derived from: https://cs.opensource.google/go/x/mod/+/refs/tags/v0.12.0:sumdb/dirhash/hash.go

May need to bring the `prefix` arguments back to accomodate more flexibility in HashDir()

Index

Constants

This section is empty.

Variables

View Source
var Hash1 = dirhash.Hash1

Functions

func DirFiles

func DirFiles(dir string, fileSys fs.FS, ignore func(string) bool) ([]string, []string, error)

DirFiles returns the list of files in the tree rooted at dir, the list of ignored files, and any error encountered.

func HashDir

func HashDir(dir string, hash dirhash.Hash, fs fs.FS, ignore func(string) bool) (string, error)

HashDir returns the hash of the io.FS dir and any error encountered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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