mirror of
https://github.com/apache/jclouds.git
synced 2025-02-08 02:59:46 +00:00
03248b4c94
When filtering results, we have to consider that a result was added to the common prefixes list in its entirety (i.e. a directory). Such results should be filtered out from the delimiter test. An example that demonstrates this problem is if one creates a directory "foo" and an object within it called "file". When listing the results, they will include the directory object "foo" and the object under "foo/file". During a non-recursive listing, we create a list of common prefixes ("foo"). Subsequently, jclouds should remove all objects that include the delimiter ("/"), however, that would not apply to "foo". With the change to include the delimiter in the listing, we need to be careful not to return two values "foo" and "foo/". A unit test for the local blob store to highlight this problem is included. An integration test "testDirectory" also catches this issue.