title: How to create a "folder-like" (i.e. PREFIX) object on S3 using the AWS CLI?
body: <p>It is usually explained that there are no folders/directories on S3, which is true, however there are PREFIX objects. In some cases - e.g. using riofs to "mount" a filesystem to S3 - it could actually be useful to know how to create one of these.</p>
  
  <p>Does anyone know if there is a "correct" way to do this with the AWS CLI? It's likely possible using the low-level API <code>aws s3api ...</code></p>
  
  <p>Related SO posts:</p>
  
  <p><a href="https://stackoverflow.com/questions/1939743/amazon-s3-boto-how-to-create-folder">Amazon S3 boto - how to create a folder?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6553361/creating-a-folder-via-s3cmd-amazon-s3">Creating a folder via s3cmd (Amazon S3)</a></p>
  
  <p>P.S.</p>
  
  <p>I also want to point out that in the AWS console this action is actually named "Create Folder...", so it's not really fair to tell people that there is no "concept" of a folder on S3.</p>
  
  <p>Many thanks!</p>