Refactor components

This commit is contained in:
Tom Wiesing 2022-09-12 14:44:45 +02:00
parent 17011a277f
commit 487ce09979
No known key found for this signature in database
7 changed files with 117 additions and 63 deletions

View file

@ -48,8 +48,6 @@ var ErrCopyNoDirectory = errors.New("dst is not a directory")
//
// onCopy, when not nil, is called for each file or directory being copied.
func CopyDirectory(dst, src string, onCopy func(dst, src string)) error {
// TODO: Allow copying in parallel? Maybe with a mutex?
// sanity checks
if SameFile(src, dst) {
return ErrCopySameFile

View file

@ -1,4 +1,4 @@
// Package hostname provides hostname
// Package hostname provides the hostname.
package hostname
import (