Skip to content

Commit f0d0225

Browse files
committed
fix path reference
1 parent a8d0617 commit f0d0225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

find_replace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func main() {
9191
// directory. Calls HandleFile for each file it finds, if it's not ignored.
9292
func (fr *findReplace) WalkDir(f *File) {
9393
// List the files in this directory.
94-
files, err := os.ReadDir(f.Info().Name())
94+
files, err := os.ReadDir(f.Path)
9595
if err != nil {
9696
log.Fatalf("Unable to read directory: %v", err)
9797
}

0 commit comments

Comments
 (0)