Refactor components
This commit is contained in:
parent
17011a277f
commit
487ce09979
7 changed files with 117 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Package hostname provides hostname
|
||||
// Package hostname provides the hostname.
|
||||
package hostname
|
||||
|
||||
import (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue