public void TestGetBucketACL() { if (init()) { AccessControlList acl = ks3Client.getBucketAcl(bucketName); Console.WriteLine("Bucket Name: " + bucketName); Console.WriteLine(acl.ToString()); Assert.IsNotNull(acl); } }
private static bool getBucketACL() { // Get Bucket ACL try { Console.WriteLine("--- Get Bucket ACL: ---"); AccessControlList acl = ks3Client.getBucketAcl(bucketName); Console.WriteLine("Bucket Name: " + bucketName); Console.WriteLine(acl.ToString()); Console.WriteLine("-----------------------\n"); } catch (System.Exception e) { Console.WriteLine(e.ToString()); return(false); } return(true); }