예제 #1
0
        public async Task RenameFileAsync(string sourceFilePath, string destinationFilePath)
        {
            var sourceKey      = PathRelativeToSourceDirectory(sourceFilePath);
            var destinationKey = PathRelativeToSourceDirectory(destinationFilePath);
            await _s3Client.CopyObjectAsync(_bucketName, sourceKey, _bucketName, destinationKey).ConfigureAwait(false);

            await _s3Client.DeleteObjectAsync(_bucketName, sourceKey).ConfigureAwait(false);
        }