utils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDirectorySize

func CalculateDirectorySize(rootPath string) (int64, error)

CalculateDirectorySize calculates the total size in bytes of all regular files within the given rootPath. It follows symbolic links for files to count the target's size. It does not follow symbolic links for directories during traversal. Broken symbolic links are skipped.

func GenerateRandomString

func GenerateRandomString(stringLength int) string

GenerateRandomString creates a random string of a fixed length (6 characters).

func GetMountPoint

func GetMountPoint() string

func IgnoreContainer

func IgnoreContainer(container explorers.Container, filter map[string]string) bool

func IncludeContainer

func IncludeContainer(container explorers.Container, filter map[string]string) bool

func PathExists

func PathExists(path string) (bool, error)

PathExists returns true of specified file or directory exists. If symlink is provided, it returns error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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