Skip non-regular files for artifact metadata generator inclusion
What does this MR do?
Skips non-regular files for inclusion in artifact metadata.
Why was this MR needed?
Directories, and other non-regular files were causing an error as they were unexpected.
What's the best way to test this MR?
Test a job with RUNNER_GENERATE_ARTIFACTS_METADATA
enabled and an artifact path **/
with both files and directories that would be included.
What are the relevant issue numbers?
Closes #29403 (closed)