Upload the more than one files in the same directory on aws s3 using ruby [duplicate]

StackOverflow https://stackoverflow.com/questions/23288231

  •  09-07-2023
  •  | 
  •  

문제

I have three files as

1_timestamp.mp4, 
2_timestamp.mp4,
3_timestamp.mp4

By combining these files I am creating combined_timestamp.mp4 file, after that I am uploading combined_timestamp.mp4 file to aws s3.Upload functionality works fine.

But now I have to upload 1_timestamp.mp4, 2_timestamp.mp4, 3_timestamp.mp4 files along with combined_timestamp.mp4.

Is this possible to upload all these files under one timestamp folder. So that I can group them under one folder.

If it is possible, them please guide me.

I am using ruby 1.9.3, fog and gem "aws-sdk", ">= 1.8.1.2"

도움이 되었습니까?

해결책

From this answer:

There is no concept of folders or directories in S3. You can create file names like "abc/xys/uvw/123.jpg", which many S3 access tools like S3Fox show like a directory structure, but it's actually just a single file in a bucket.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top