일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- A-Frame
- vue
- 3d
- CI/CD
- vuex
- javscript
- array
- npx
- 상태관리
- WebXR
- package-lock.json
- auth0
- EM6
- vuetify
- version mismatch
- JS
- promise
- PDO
- WebVR
- vue-template-compiler
- Component
- aframe
- web
- JavaScript
- bootstrap
- Node
- VR
- Three.js
- PHP
- AR
- Today
- Total
대가는 결과를 만든다
[이슈] aws s3 directory 개념의 삭제 본문
s3 콘솔이나, 파일경로를 보면 s3에 directory로 구성되는거 같지만 s3에는 directory개념이 없다. 모든 것이 하나의 파일 객체의 개념이다.
따라서 directory를 삭제 하듯이 해당 경로 하위 파일 객체들과 함께 모두 지우기 위해서는 경로 하위에 존재하는 파일객체 목록을 조회한 후 deleteObject가 아닌 deleteObjects로 일괄 제거해야 한다.
https://stackoverflow.com/questions/20207063/how-can-i-delete-folder-on-s3-with-node-js
How can I delete folder on s3 with node.js?
Yes, I know. There is no folder concept on s3 storage. but I really want to delete a specific folder from s3 with node.js. I tried two solutions, but both didn't work. My code is below: Solution 1:
stackoverflow.com
https://repl.it/@DrwHarris/Delete-S3-Folder
Delete S3 Folder
Powerful and simple online compiler, IDE, interpreter, and REPL. Code, compile, and run code in 50+ programming languages: Clojure, Haskell, Kotlin (beta), QBasic, Forth, LOLCODE, BrainF, Emoticon, Bloop, Unlambda, JavaScript, CoffeeScript, Scheme, APL, Lu
repl.it