This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void DownloadObject(string keyName) | |
| { | |
| string[] keySplit = keyName.Split('/'); | |
| string fileName = keySplit[keySplit.Length - 1]; | |
| string dest = Path.Combine(HttpRuntime.CodegenDir, fileName); | |
| using (client = Amazon.AWSClientFactory.CreateAmazonS3Client()) | |
| { | |
| GetObjectRequest request = new GetObjectRequest().WithBucketName(bucketName).WithKey(keyName); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "net/url" | |
| "os" | |
| "time" |