swfs

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFS added in v0.9.17

func CopyFS(dir fs.FS, dst string) error

CopyFS copies the filesystem, returned from "state.GetDirectory(arg)", to the destination (dst).

func CopyFile

func CopyFile(from, to string) error

func CopyFileReader

func CopyFileReader(r io.Reader, to string) error

func Equal added in v0.9.17

func Equal(a fs.FS, b fs.FS) (bool, error)

Equal ensures that all files and folders in 'a' exist in 'b'. This function will return true even if dirB contains more items than 'a', as long as all items in 'a' exist in 'b'.

func HashDirectory added in v0.9.17

func HashDirectory(dir string) ([]byte, error)

func HashFS added in v0.9.17

func HashFS(dir fs.FS) ([]byte, error)

func HashFile added in v0.9.17

func HashFile(r io.Reader) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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