Added check to only process result files (not directories)