package fs
import "helm.sh/helm/v3/internal/third_party/dep/fs"
Index ¶
- func CopyDir(src, dst string) error
- func IsDir(name string) (bool, error)
- func IsSymlink(path string) (bool, error)
- func RenameWithFallback(src, dst string) error
Functions ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist.
func IsDir ¶
IsDir determines is the path given is a directory or not.
func IsSymlink ¶
IsSymlink determines if the given path is a symbolic link.
func RenameWithFallback ¶
RenameWithFallback attempts to rename a file or directory, but falls back to copying in the event of a cross-device link error. If the fallback copy succeeds, src is still removed, emulating normal rename behavior.
Source Files ¶
fs.go rename.go
- Version
- v3.17.3 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 month ago –
Tools for package owners.