Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyAll ¶
CopyAll recursively copies the contents of the src directory into the dst directory.
It preserves file and directory permissions. Existing files or directories in the destination with the same name will be overwritten. Symbolic links and special files are not handled.
Parameters:
src - Path to the source directory. dst - Path to the destination directory.
Returns an error if any operation fails.
Example usage:
err := dir.CopyAll("source", "destination")
if err != nil {
log.Fatal(err)
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.