Documentation
¶
Index ¶
- func CopyFilesToDirectory(filesystem fs.FS, destinationDir string) error
- func CreateTempDirectory(name string) (string, error)
- func DetectFiletype(content []byte) (string, error)
- func ExcludeSuffixes(filenames []string, suffixes []string) []string
- func FindFilesWithSuffixes(directory string, suffixes []string) ([]string, error)
- func FindManifestFiles(path string) ([]string, error)
- func IsValidDirectoryRef(ref string) bool
- func RebasePath(relPath, baseDir, refDir string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFilesToDirectory ¶
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 ¶
CreateTempDirectory creates a temporary directory with a given name in a unique location.
func DetectFiletype ¶ added in v1.4.0
func ExcludeSuffixes ¶ added in v1.8.0
func FindFilesWithSuffixes ¶
func FindManifestFiles ¶
func IsValidDirectoryRef ¶ added in v1.8.4
func RebasePath ¶ added in v1.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.