util

package
v0.0.0-...-6576891 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcCRC32

func CalcCRC32(path string) (uint32, error)

CalcCRC32 Calculates the given file's CRC32 checksum.

func DeleteFileIfExists

func DeleteFileIfExists(path string) (bool, error)

DeleteFileIfExists deletes the file if the file exists.

func DirExists

func DirExists(path string) bool

DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists.

func FileExists

func FileExists(path string) bool

FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file.

func GetFileSize

func GetFileSize(path string) (uint64, error)

GetFileSize gets the file size of the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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