title: How can I copy all objects in root directory but not subdirectories with aws s3 cp?
body: <p>I need to copy content inside a AWS S3 bucket root folder to another folder inside root.</p>
  
  <p>I want copy all files in root (textfile1.txt etc) except other folders (folder1,folder2) in to the folder3. </p>
  
  <p>What would be the aws s3 copy command for it?</p>
  
  <pre><code>/
  folder1
  folder2
  textfile1.txt
  textfile2.txt
  --many other text files
  folder3
  </code></pre>