docs: def _upload_artifacts_to_path(self, mirror=False):
          """Recursively upload directory contents to S3.
  
          Args:
              mirror (bool): If true, uses a flat directory structure instead of nesting under a version.
          """
          if not os.listdir(self.artifact_path) or not self.artifact_path:
              raise S3ArtifactNotFound
  
          uploaded = False
          if self.s3props.get("content_metadata"):
              LOG.info("Uploading in multiple parts to set metadata")
              uploaded = self.content_metadata_uploads(mirror=mirror)
  
          if not uploaded:
              cmd = self._get_upload_cmd(mirror=mirror)
              result = subprocess.run(cmd, check=True, shell=True, stdout=subprocess.PIPE)
              LOG.debug("Upload Command Ouput: %s", result.stdout)
  
          LOG.info("Uploaded artifacts to %s bucket", self.bucket)