Artifact metadata generation: is a directory error
Problem
As reported in https://gitlab.com/gitlab-com/ops-sub-department/section-ops-request-for-help/-/issues/36, the artifact metadata generator fails if a pathname provided is a directory, or non-regular file.
Proposal
Metadata generation for non-regular files can (for now) be skipped.