Snowcode.S3BuildPublisher.S3.S3Helper.Publish C# (CSharp) 메소드

Publish() 공개 메소드

Publish a file to a S3 bucket, in the folder specified, optionally making it publically readable.
public Publish ( string files, string bucketName, string folder, bool publicRead ) : void
files string
bucketName string
folder string
publicRead bool
리턴 void
        public void Publish(string[] files, string bucketName, string folder, bool publicRead)
        {
            CreateBucketIfNeeded(bucketName);

            string destinationFolder = GetDestinationFolder(folder);

            StoreFiles(files, bucketName, destinationFolder, publicRead);
        }

Usage Example

 private void PublishFiles(AwsClientDetails clientDetails)
 {
     using (var helper = new S3Helper(clientDetails))
     {
         helper.Publish(SourceFiles, DestinationBucket, DestinationFolder, PublicRead);
         Log.LogMessage(MessageImportance.Normal, "Published {0} files to S3", SourceFiles.Length);
     }
 }
All Usage Examples Of Snowcode.S3BuildPublisher.S3.S3Helper::Publish