files

package
v0.15.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(filePath string) bool

CheckFileExists checks if a file exists

func CheckFileExtension

func CheckFileExtension(filePath string, extension string) bool

CheckFileExtension checks if a file has a specific extension

func CheckFileSizeMb

func CheckFileSizeMb(filePath string) (float64, error)

CheckFileSizeMb checks the size of a file in MB

func FilesValidation

func FilesValidation(filesList []FilesListValidation) error

Types

type FilesListValidation

type FilesListValidation struct {
	FilePath          string
	ExpectedExtension string
	ShouldExist       bool
}

Jump to

Keyboard shortcuts

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