utils

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFilesToDirectory

func CopyFilesToDirectory(filesystem fs.FS, destinationDir string) error

CopyFilesToDirectory copies files from an filesystem to a specified local directory.

It walks through the filesystem and writes each file to the destination directory, preserving the directory structure. Directories are created as needed.

func CreateTempDirectory

func CreateTempDirectory(name string) (string, error)

CreateTempDirectory creates a temporary directory with a given name in a unique location.

func DetectFiletype added in v1.4.0

func DetectFiletype(content []byte) (string, error)

func ExcludeSuffixes added in v1.8.0

func ExcludeSuffixes(filenames []string, suffixes []string) []string

func FindFilesWithSuffixes

func FindFilesWithSuffixes(directory string, suffixes []string) ([]string, error)

func FindManifestFiles

func FindManifestFiles(path string) ([]string, error)

func IsValidDirectoryRef added in v1.8.4

func IsValidDirectoryRef(ref string) bool

func RebasePath added in v1.8.0

func RebasePath(relPath, baseDir, refDir string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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