title: Why does listing objects in an S3 bucket's folder using AWS SDK for JavaScript returns empty Contents array but KeyCount greater than one?
body: <p>I have a bucket in S3 called <strong>myBucketName</strong>. It has one folder called <strong>myFolderName</strong> and is containing one file <strong>myFile</strong>.</p>
  
  <p>I try to list the objects in the folder like so:</p>
  
  <pre><code>s3.listObjectsV2({       
    Bucket: 'myBucketName',
    Delimiter: "/",
    Prefix: 'myFolderName',
  })
  </code></pre>
  
  <p>With the response  </p>
  
  <pre><code>{
    IsTruncated: false,
    Contents: [],    
    Name: 'myBucketName',
    Prefix: 'myFolderName',
    Delimiter: '/',
    MaxKeys: 1000,
    CommonPrefixes: [ { Prefix: 'myFolderName/' } ],
    KeyCount: 1 
  }
  </code></pre>
  
  <p>How come the <code>Contents</code> array is empty even though <code>KeyCount</code> is 1? I would have expected to contain one item with Key == 'myFolderName/myFile'</p>
  
  <p>What should I do to get the desired result, i.e. a list of the objects in the folder?</p>