We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8d0617 commit f0d0225Copy full SHA for f0d0225
1 file changed
find_replace.go
@@ -91,7 +91,7 @@ func main() {
91
// directory. Calls HandleFile for each file it finds, if it's not ignored.
92
func (fr *findReplace) WalkDir(f *File) {
93
// List the files in this directory.
94
- files, err := os.ReadDir(f.Info().Name())
+ files, err := os.ReadDir(f.Path)
95
if err != nil {
96
log.Fatalf("Unable to read directory: %v", err)
97
}
0 commit comments