TARを抽出する
TAR files are most commonly used for bundling and compressing multiple files and directories into a single archive. However, extracting them could be troublesome at times, as they are used in conjunction with GZIP and BZIP2. However, with the versatility of IronZIP, we can simply call the IronTarArchive class to extract the contents of the TAR for the last layer and then further extract it in the second format, all within a single library.
C#でTARファイルを抽出する
- IronZip を使用します。
IronTarArchive.ExtractArchiveToDirectory("output.tar", "extracted");。
TARアーカイブの抽出
まず初めに、プロジェクトにIronZip名前空間を含める必要があります。これにより、その機能にアクセスできます。 We can then use the IronTarArchive class to extract the contents of the TAR file with the method ExtractArchiveToDirectory.
この関数は、指定されたディレクトリにTARファイルの内容を解凍するために設計されています。 最初のパラメータは、解凍したいTARファイルへの完全なパスであるべきです。 2番目のパラメータは、解凍されたファイルを保存する宛先フォルダーを示します。




