--- a/fs/copy.go Sat Dec 18 05:54:45 2021 -0600
+++ b/fs/copy.go Sat Dec 18 06:13:34 2021 -0600
@@ -22,8 +22,6 @@
- log "github.com/sirupsen/logrus"
// CopyFile copies the contents from src to dst atomically.
@@ -65,11 +63,8 @@
err = filepath.Walk(src, func(path string, info os.FileInfo, err error) error {
- log.Debugf("walk: path %q", path)
// make sure we're don't descend into our destination directory.
if strings.HasPrefix(path, absDst) {
- log.Debugf("%q is in the destination %q", path, absDst)
@@ -77,8 +72,6 @@
realDst := filepath.Join(dst, strings.TrimPrefix(path, src))
- log.Debugf("src %q; dst %q; realDst %q", path, dst, realDst)
// if path is a directory, create it
err := os.Mkdir(realDst, info.Mode())