diff --git a/pipe/pipe.go b/pipe/pipe.go index 6aa4f3588..aeabcf8f4 100644 --- a/pipe/pipe.go +++ b/pipe/pipe.go @@ -174,7 +174,16 @@ func cleanupPath(path string) ([]string, error) { return []string{path}, nil } - return readDirNames(path) + paths, err := readDirNames(path) + if err != nil { + return nil, err + } + + for i, p := range paths { + paths[i] = filepath.Join(path, p) + } + + return paths, nil } // Walk sends a Job for each file and directory it finds below the paths. When