title: List objects in a specific folder on Amazon S3
body: <p>I am trying to get the list of <code>Object</code> under a specific folder in my bucket.</p>
  
  <p>I know that to get a list of all of my objects I do:</p>
  
  <pre><code>    $objects = $client-&gt;getIterator('ListObjects', array(
      'Bucket' =&gt; $bucket
  )); 
  </code></pre>
  
  <p>I want to get only the objects under the folder <code>my/folder/test</code>. I have tried adding </p>
  
  <pre><code>        'key' =&gt; "my/folder/test",
  </code></pre>
  
  <p>And </p>
  
  <pre><code>        'prefix' =&gt; "my/folder/test",
  </code></pre>
  
  <p>But it simply returns all of the objects in my bucket.</p>