AWS S3 SDK Get the folder instead of a file

前端 未结 2 775
一生所求
一生所求 2020-12-11 23:57

Below codes can get 1 single file from AWS 3 but, what about a folder?

var _key:int=Account.lessons[dl_i].id;
var dest:String =  Conf.Dir+_key;
var request:G         


        
2条回答
  •  無奈伤痛
    2020-12-12 00:16

    There is no such stuff as folders in Amazon S3. It is a "flat" file system. The closer you can get to folders is adding prefixes like foo/bar/filename.txt to your file names. Even though several S3 tools will show you stuff as if they were contained inside folders, this concept does not exist on S3.

    Please see this related thread: Amazon s3 Folders Problem

提交回复
热议问题