fsutil

package
v0.0.0-...-f6bc33c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5Hash

func Md5Hash(path string) (string, error)

func ReadNetworkHistorySegmentData

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