I am able to move an object in an S3 bucket from one directory to another directory using C# but unable to copy all current permissions with that object.
For example, my current object has public access permissions but after moving it to another directory it lost the public read permissions.
Here is the code I'm using to move objects:
public void MoveFile(string sourceBucket, string destinationFolder, string file) {
AmazonS3Client s3Client = new AmazonS3Client(ConfigurationHelper.AmazonS3AccessKey, ConfigurationHelper.AmazonS3SecretAccessKey, Amazon.RegionEndpoint.USEast1);
S3FileInfo currentObject = new S3FileInfo(s3Client, sourceBucket, file);
currentObject.MoveTo(sourceBucket + "/" + destinationFolder, file);
}
Here is the output after moving file to another directory:

It lost public "Read" permission.