title: How to copy files from local folder to s3 bucket's root path without copying the folder?
body: <p>I have a local folder with name <code>build</code>. I'm trying to copy all the files in that folder to an s3 bucket's root path.</p>
  <p>I have <code>f1.txt</code>, <code>f2.txt</code>, <code>ff/f3.txt</code>, <code>ff/f4.txt</code> files in build folder. Notice the sub folders in the directory.</p>
  <p>I tried executing the below command to copy the files</p>
  <pre><code>aws s3 cp build s3://$INTERNAL_DOCS_AWS_BUCKET --recursive
  </code></pre>
  <p>It's copying the whole folder and its contents to S3 bucket along with the folder.</p>
  <p>The expected output in S3 bucket's root path is <code>all the files and subfolder mentioned above - f1.txt, f2.txt, ff/f3.txt, ff/f4.txt</code></p>
  <p>The actual output is - all the folders and subfolders with in <code>build</code> path in s3 bucket.</p>