We should change jclouds logic to make S3's fake directories act more like the jclouds concept of directories.  Consider mkdir -p a/b/c and ls a/ .  jclouds will return a, a/b, and a/b/c in this situation since it matches based on the prefix.  ls a/b/ returns a/b and a/b/c .  I think we should match other providers and return b in the first situation and b in the second.  Long story short, this test can succeed.