Documentation
¶
Overview ¶
Package fileutils provides utility functions for file operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶ added in v0.5.0
CopyFile copies a file from a source to a destination path, preserving the file mode.
func FileExists ¶
FileExists checks if a file exists at the given path.
func IsDirEmpty ¶
IsDirEmpty checks if the specified directory is empty.
Types ¶
type SymlinkResolutionError ¶ added in v0.5.0
type SymlinkResolutionError struct {
// contains filtered or unexported fields
}
SymlinkResolutionError is the error returned when symlink resolution fails.
func (SymlinkResolutionError) Error ¶ added in v0.5.0
func (e SymlinkResolutionError) Error() string
func (SymlinkResolutionError) Is ¶ added in v0.5.0
func (e SymlinkResolutionError) Is(target error) bool
Is makes this error insensitive to the internal values.
func (SymlinkResolutionError) Unwrap ¶ added in v0.5.0
func (e SymlinkResolutionError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.