Skip to content

Commit

Permalink
Drop go implementation of recursive copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Soltis authored and Greg Soltis committed May 8, 2023
1 parent 130b623 commit 3ae6fdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 41 deletions.
6 changes: 3 additions & 3 deletions cli/internal/fs/copy_file.go
Expand Up @@ -14,14 +14,14 @@ import (
// It's implemented over github.com/karrick/godirwalk but the provided interface doesn't use that
// to make it a little easier to handle.
func Walk(rootPath string, callback func(name string, isDir bool) error) error {
return WalkMode(rootPath, func(name string, isDir bool, mode os.FileMode) error {
return walkMode(rootPath, func(name string, isDir bool, mode os.FileMode) error {
return callback(name, isDir)
})
}

// WalkMode is like Walk but the callback receives an additional type specifying the file mode type.
// walkMode is like Walk but the callback receives an additional type specifying the file mode type.
// N.B. This only includes the bits of the mode that determine the mode type, not the permissions.
func WalkMode(rootPath string, callback func(name string, isDir bool, mode os.FileMode) error) error {
func walkMode(rootPath string, callback func(name string, isDir bool, mode os.FileMode) error) error {
return godirwalk.Walk(rootPath, &godirwalk.Options{
Callback: func(name string, info *godirwalk.Dirent) error {
// currently we support symlinked files, but not symlinked directories:
Expand Down
File renamed without changes.
38 changes: 0 additions & 38 deletions cli/internal/fs/recursive_copy_go.go

This file was deleted.

0 comments on commit 3ae6fdf

Please sign in to comment.