Versions in this module Expand all Collapse all v0 v0.14.0 Jan 2, 2026 Changes in this version + func EnsureDir(path string) error + func ExpandHome(path string) (string, error) + func GetConflictNumber(path string) int + func HasConflictSuffix(path string) bool + func IsDir(path string) bool + func IsFile(path string) bool + func IsInDirectory(path, dir string) (bool, error) + func PathExists(path string) bool + func RelativePath(base, target string) (string, error) + func ResolveConflict(path string) (string, error) + func ValidatePath(path string) error + func ValidateSubdirectory(subdir string) error + type CopyItem struct + Dst string + Src string + type CopyResult struct + Dst string + FileCount int + IsDir bool + Renamed bool + Size int64 + Src string + func Copy(src, dst string, force bool) (CopyResult, error) + func CopyBatch(items []CopyItem, force bool) ([]CopyResult, []error) + func CopyToDir(src, dstDir string, force bool) (CopyResult, error) + type MoveItem struct + Dst string + Src string + type MoveResult struct + CrossFilesystem bool + Dst string + FileCount int + IsDir bool + Renamed bool + Src string + func Move(src, dst string) (MoveResult, error) + func MoveBatch(items []MoveItem) ([]MoveResult, []error) + func MoveToDir(src, dstDir string) (MoveResult, error)