treestatsquery

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: EUPL-1.2 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FTStatsSum

func FTStatsSum(dbfile string, paths []string) (types.FileTypeStats, error)

FTStatsSum returns the summary FileTypeStats for the given paths as a map of FTypeStat per File Type Paths can be files or directories. The summary is counted like this for the respective path format path="/my/dir/*" => count /my/dir/ and below recursively path="/my/dir*/*" => count all dirs matching /my/dir*/ and below recursively path="/my/dir/" => count ony the contents of /my/dir/ path="/my/dir*/" => count ony the contents of dirs matching /my/dir*/ path="/my/file" => count only "/my/file" path="/my/file*" => count all files matching "/my/file*"

func FTStatsSumDB

func FTStatsSumDB(dbconn *ftsdb.FileTypeStatsDB, paths []string) (types.FileTypeStats, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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