title: aws s3 - upload a directory and its subdirectories as a s3 bucket
body: <p>I try  to transfer a directory and its sub-directories to an s3 bucket by code. 
  In my case a sub-directory is a partition in the bucket.
  As in the picture: 
  <a href="https://i.stack.imgur.com/8Za2Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Za2Z.png" alt="enter image description here"></a></p>