Skip to content

Commit

Permalink
Merge pull request #23 from steffenfritz/walkdir_refactoring
Browse files Browse the repository at this point in the history
Refactored filepath.Walk to filepath.WalkDir
  • Loading branch information
steffenfritz committed Dec 26, 2022
2 parents 93290ac + 39c984f commit b310253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package filedriller

import (
"encoding/hex"
"io/fs"
"log"
"os"
"path/filepath"
Expand All @@ -17,7 +18,7 @@ import (
func CreateFileList(rootDir string) ([]string, []string) {
var fileList []string
var dirList []string
err := filepath.Walk(rootDir, func(path string, info os.FileInfo, err error) error {
err := filepath.WalkDir(rootDir, func(path string, info fs.DirEntry, err error) error {
if err != nil {
return err
}
Expand Down
Binary file modified third_party/pronom.sig
Binary file not shown.

0 comments on commit b310253

Please sign in to comment.