func (a *AmazonS3) CreateDir(ctx context.Context, req *model.CreateFileRequest) error {
	svc := s3.New(a.client)
	request := &s3.PutObjectInput{
		Bucket: aws.String(a.bucket),
		Key:    aws.String(utils.JoinLeadingTrailing(req.Path, req.Name, "/")),
	}
	_, err := svc.PutObject(request)
	return err
}
CreateDir creates a directory in S3
package amazons3
import (
	"context"
	"io"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/service/s3"
	"github.com/aws/aws-sdk-go/service/s3/s3manager"
	"github.com/spaceuptech/space-cloud/gateway/model"
	"github.com/spaceuptech/space-cloud/gateway/utils"
)
func (a *AmazonS3) CreateFile(ctx context.Context, req *model.CreateFileRequest, file io.Reader) error {
	uploader := s3manager.NewUploader(a.client)
	_, err := uploader.Upload(&s3manager.UploadInput{
		Bucket: aws.String(a.bucket),
		Key:    aws.String(utils.JoinLeading(req.Path, req.Name, "/")),
		Body:   file,
	})
	return err
}