Guard against nil FileInfo in filepath.Walk

What does this MR do? Adds a guard for error cases in filepath.Walk to prevent nil FileInfo panics.

Why was this MR needed? filepath.Walk may invoke the walk function with err != nil and a nil FileInfo. Accessing info.Name() in this case can cause a panic.

What is the best way to test this MR? Run the existing checks; behavior is unchanged except for safe handling of filesystem errors.

Merge request reports

Loading