Folders do kind-of exist now, as zero-length objects with a content-type of application/x-directory and a key ending in /:$ AWS_PROFILE=prod aws s3api head-object --bucket example-bucket --key example-directory/{ "AcceptRanges": "bytes", "LastModified": "Mon, 29 Apr 2019 14:59:36 GMT", "ContentLength": 0, "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"", "ContentType": "application/x-directory", "ServerSideEncryption": "AES256", "Metadata": {}}这仍然只是惯例,没有什么可以阻止您以/结尾的文件或不存在的文件夹"中的文件.This is still just convention and there's nothing stopping you from having files ending / or files inside of "folders" that don't exist. 这篇关于删除Amazon S3 Java中的文件,目录和存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-28 13:11