swfs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFS

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

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

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

func HashFS

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

func HashFile

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