The S3 needs support to create the nonexistent dir when copying the file to the nonexistent dir and the role needs to have sufficient permissions.
- Modify the upload logic in JuiceFS code to automatically create a nonexistent directory when copying files to a nonexistent directory in S3
- The IAM role for the S3 config needs to have the following permission:
s3:ListBucket, s3:ListBucketVersions, s3:ListBucketMultipartUploads, s3:GetBucketLocation, s3:GetObject, s3:GetObjectVersion, s3:PutObject, s3:DeleteObject, s3:ListMultipartUploadParts, s3:AbortMultipartUpload, s3:ListAllMyBuckets, s3:HeadBucket, s3:CreateBucket.