PR nits
This commit is contained in:
parent
07ee307d61
commit
8ac3c1c80d
@ -316,6 +316,7 @@ func fastWalkFileOrDir(parentDir string, itemFi os.FileInfo, excludeFilename str
|
||||
return
|
||||
}
|
||||
defer df.Close()
|
||||
// The number of items in a dir we process in each goroutine
|
||||
jobSize := 100
|
||||
for children, err := df.Readdir(jobSize); err == nil; children, err = df.Readdir(jobSize) {
|
||||
// Parallelise all dirs, and chop large dirs into batches
|
||||
@ -339,7 +340,6 @@ func fastWalkFileOrDir(parentDir string, itemFi os.FileInfo, excludeFilename str
|
||||
// If any changes are made a copy of the array is taken so the original is not
|
||||
// modified
|
||||
func loadExcludeFilename(filename, parentDir string, excludePaths []string) ([]string, error) {
|
||||
|
||||
f, err := os.OpenFile(filename, os.O_RDONLY, 0644)
|
||||
if err != nil {
|
||||
return excludePaths, err
|
||||
|
Loading…
Reference in New Issue
Block a user