fylez

package
v0.0.0-...-a12d0ae Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDirSize

func CalculateDirSize(dirPath string) (int64, error)

func FileExists

func FileExists(path string) bool

func FilenameWithoutExt

func FilenameWithoutExt(fileName string) string

func VisitWithNameChecker

func VisitWithNameChecker(nameChecker NameChecker, fileHandler FileHandler, directoryHandler DirectoryHandler) fs.WalkDirFunc

Types

type DirectoryHandler

type DirectoryHandler func(entryPath string, entry os.DirEntry)

type FileHandler

type FileHandler func(entryPath string, fileInfo os.FileInfo)

type NameChecker

type NameChecker func(filename string) bool

func ContainsNameChecker

func ContainsNameChecker(substring string) NameChecker

func HasPrefixNameChecker

func HasPrefixNameChecker(prefix string) NameChecker

func HasSuffixNameChecker

func HasSuffixNameChecker(suffix string) NameChecker

Jump to

Keyboard shortcuts

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