Documentation
¶
Overview ¶
Package files provides utilities for managing collections of files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Files ¶
Files represents a collection of filesystem paths. Provides batch operations for working with multiple files.
func New ¶
New creates a Files collection from path strings. Joins each path with the provided directory to create full paths. Empty paths are skipped, and an empty directory uses paths as-is.
func (*Files) Add ¶ added in v0.1.0
Add adds a new file to the collection. Joins the provided path with the directory to create a full path.
func (*Files) AddFile ¶ added in v0.1.0
AddFile adds a file to the collection. If the file already exists in the collection, it is not added again.
func (Files) AsSlice ¶ added in v0.0.18
AsSlice converts the Files collection to a slice of strings.
func (Files) Contains ¶ added in v0.1.0
Contains checks if the collection contains a specified file.