Exemple #1
0
 public void TestGetBucketACL()
 {
     if (init())
     {
         AccessControlList acl = ks3Client.getBucketAcl(bucketName);
         Console.WriteLine("Bucket Name: " + bucketName);
         Console.WriteLine(acl.ToString());
         Assert.IsNotNull(acl);
     }
 }
Exemple #2
0
        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);
        }