[디버깅] macOS 메타데이터 파일 중복 (__MACOSX, ._ 파일) #783
al-bur
started this conversation in
Today I Learned
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
증상
ZIP 파일 압축 해제 시 파일이 2배로 나옴
원인
macOS에서 생성된 ZIP 파일에는 리소스 포크(Resource Fork) 메타데이터가 포함됨:
__MACOSX/폴더 내의 파일들._접두사가 붙은 파일들 (예:._원천징수.pdf)이 파일들은 macOS 전용 메타데이터로, 실제 콘텐츠가 아님
해결
JSZip으로 ZIP 추출 시 해당 파일들을 필터링:
교훈
__MACOSX폴더와._파일은 항상 필터링 필요All reactions