잡동사니
Zip 파일 구조
L3m0n S0ju
2021. 12. 15. 19:18
위 그림을 보면 Local file header와 Central Header이 3세트 있는데 이는 zip 파일 안에 3개의 파일이 압축되어 있음을 의미합니다. 각 헤더의 의미는 다음과 같습니다.
Local directory -> 압축 대상 파일의 압축한 데이터를 저장
-> Local file header
-> File data
-> Data descriptor
Central directroy -> 압축 대상 파일의 메타 데이터를 저장
-> Central directory file header
-> End of central directory (EOCD)
Local directory
Local file header
Data descriptor
Central directory
Central directory file header
End of central directory