paths

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirEmpty

func IsDirEmpty(path string) (bool, error)

IsDirEmpty checks if the provided path is an empty dir

func IsIgnored

func IsIgnored(path string, ignoreList []string) bool

IsIgnored checks if a path is in the provided ignore list

Types

type Path

type Path struct {
	Path         string
	RealPath     string
	FileName     string
	Directory    string
	IsDir        bool
	Size         int64
	ModifiedTime time.Time
}

func InFolder

func InFolder(folder string, includeFiles bool, includeFolders bool, acceptFn callbackAllowed) ([]Path, uint64)

InFolder traverses the provided folder and returns a list of paths and their total size. Files and folders can optionally be included in the results, and a custom accept function can be provided to filter the results further.

Jump to

Keyboard shortcuts

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