fsutil

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5Hash added in v0.71.0

func Md5Hash(path string) (string, error)

func ReadNetworkHistorySegmentData added in v0.71.0

func ReadNetworkHistorySegmentData(file io.ReadSeekCloser, size int64, historyFileName string) (io.Reader, error)

ReadNetworkHistorySegmentData takes a io.Reader reading from a network history segment .tar archive then

  • looks inside the .tar archive for historysnapshot.tar.gz
  • looks looks historysnapshot.tar.gz for a file called `historyFileName`
  • returns an io.Reader for reading that file

func RemoveAllFromDirectoryIfExists

func RemoveAllFromDirectoryIfExists(dir string) error

RemoveAllFromDirectoryIfExists used in place of os.RemoveAll when the directory should be emptied but not removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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