예제 #1
0
        static int Main(string[] args)
        {
            if (args.Length != 2)
            {
                string usage = @"Usage: CopyBlob container\blob container\blob";
                Trace.TraceInformation(usage);
                Console.WriteLine(usage);
                return(Settings.SUCCESS);
            }

            string blobPath1 = args[0];
            string blobPath2 = args[1];

            string[] fields1        = blobPath1.Split('/');
            string   containerName1 = fields1[0];
            string   blobName1      = fields1[1];

            string[] fields2        = blobPath2.Split('/');
            string   containerName2 = fields2[0];
            string   blobName2      = fields2[1];

            BlobHelper blobHelper = new BlobHelper();

            blobHelper.CopyBlob(containerName1, blobName1, containerName2, blobName2);

            return(Settings.SUCCESS);
        }