fileapi: Fix missing file set index for headers in subdirectories

Fixes: #26402
4 files changed