Documentation
¶
Overview ¶
Package pathutil provides small helpers for validating and resolving filesystem paths used throughout the project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = errors.New("path does not exist") ErrNotDirectory = errors.New("not a directory") ErrIsDirectory = errors.New("is a directory") ErrNotRegular = errors.New("not a regular file") )
Custom error types
Functions ¶
func ValidateDirectory ¶
ValidateDirectory ensures the path exists and is a directory.
func ValidateRegularFile ¶
ValidateRegularFile ensures the path exists and is a regular file. It resolves symlinks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.