示例#1
0
        static void Main(string[] args)
        {
            //初始化AK,SK
            Qiniu.Conf.Config.ACCESS_KEY = "Access_Key";
            Qiniu.Conf.Config.SECRET_KEY = "Secret_Key";
            //要测试的空间和key,并且这个key在你空间中存在
            String bucket = "Bucket_Name";
            String key    = "Bucket_key";

            //调用Stat方法
            BucketManager.Stat(bucket, key);
        }
示例#2
0
文件: copy.cs 项目: seamys/csharp-sdk
        static void Main(string[] args)
        {
            //初始化AK,SK
            Qiniu.Conf.Config.ACCESS_KEY = "Access_Key";
            Qiniu.Conf.Config.SECRET_KEY = "Secret_Key";
            //要测试的空间和key,并且这个key在你空间中存在
            String bucket = "Bucket_Name";
            String key    = "Bucket_key";

            //将文件从文件key复制到文件key2, 可以在不同bucket移动
            String key2 = "yourjavakey";

            //调用Move方法
            BucketManager.Stat(bucket, key, bucket, key2);
        }