fsutil

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressAndUntarFile

func DecompressAndUntarFile(compressedFilePath, decompressedFilesDestination string) error

func GetHistorySegmentDatabaseVersion added in v0.68.0

func GetHistorySegmentDatabaseVersion(snapshotFile string) (int64, error)

func MkdirAllIgnoringUMask

func MkdirAllIgnoringUMask(dir string) error

func RemoveAllFromDirectoryIfExists

func RemoveAllFromDirectoryIfExists(dir string) error

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

func TarAndCompressDirWithDeterministicHeader

func TarAndCompressDirWithDeterministicHeader(sourceDir, targetFile string, devMajorVersion int64) (compressedFileSize int64, err error)

TarAndCompressDirWithDeterministicHeader the tar file needs to be identical across OS/Arch, testing shows that if the default header is used there can be differences based on which platform the tar is created on.

func TarDirectoryWithDeterministicHeader

func TarDirectoryWithDeterministicHeader(w io.Writer, devMajorVersion int64, sourceDir string) error

func UntarFile

func UntarFile(source io.Reader, decompressedFilesDestination string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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