JSONとXMLファイルがたくさんあるWebサイトからZIPファイルをダウンロードし、ファイルを解凍しようとしています。
私が経験している問題は解凍するファイルを解凍したくない場合:
unzip meta.zip
Archive: meta.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of meta.zip or
meta.zip.zip, and cannot find meta.zip.ZIP, period.
7zにも同じ問題があります。
7z x meta.zip
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=de_DE.UTF-8,Utf16=on,HugeFiles=on,12 CPUs)
Processing archive: meta.zip
Error: Can not open file as archive
何らかの理由でファイル自体がHTML文書として認識されます。
file meta.zip
meta.zip: HTML document, UTF-8 Unicode text, with very long lines
私の質問は、このファイルを解凍する方法です。 MacとWindowsの両方が正常に解凍できます。
ありがとうございます!
ベストアンサー1
私はあなた自身の質問に答えたと思います。file
HTMLファイルというメッセージが表示された場合は開けzip
ません。 HTMLファイルを含むZIPファイルではなくHTMLです。ファイルには何がありますか? (たとえばを使用して確認できますless
)。