static void dumpBucketListing(ListBucketResponse list) { foreach (ListEntry entry in list.Entries) { var o = entry.Owner ?? new Owner("", ""); Console.WriteLine( entry.Key.PadRight(20) + entry.ETag.PadRight(20) + entry.LastModified.ToString().PadRight(20) + o.Id.PadRight(10) + o.DisplayName.PadRight(20) + entry.Size.ToString().PadRight(11) + entry.StorageClass.PadRight(10) ); } }
static void verifyBucketResponseParameters( ListBucketResponse listBucketResponse, string bucketNameIn, string prefix, string marker, int maxKeys, string delimiter, bool isTruncated, string nextMarker) { assertEquals(bucketNameIn, listBucketResponse.Name, "Bucket name should match."); assertEquals(prefix, listBucketResponse.Prefix, "Bucket prefix should match."); assertEquals(marker, listBucketResponse.Marker, "Bucket marker should match."); assertEquals(delimiter, listBucketResponse.Delimiter, "Bucket delimiter should match."); if (UnspecifiedMaxKeys != maxKeys) { assertEquals(maxKeys, listBucketResponse.MaxKeys, "Bucket max-keys should match."); } assertEquals(isTruncated, listBucketResponse.IsTruncated, "Bucket should not be truncated."); assertEquals(nextMarker, listBucketResponse.NextMarker, "Bucket nextMarker should match."); }