grim/convey

86694452d869
Parents 34da49589eac
Children 9e5fff47264d
remove a bunch of debug output from the fs copy stuff
  • +0 -7
    fs/copy.go
  • --- 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 @@
    "os"
    "path/filepath"
    "strings"
    -
    - log "github.com/sirupsen/logrus"
    )
    // CopyFile copies the contents from src to dst atomically.
    @@ -65,11 +63,8 @@
    dst = absDst
    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)
    return nil
    }
    @@ -77,8 +72,6 @@
    // destination name
    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
    if info.IsDir() {
    err := os.Mkdir(realDst, info.Mode())