Skip to content

Archive

Create and extract ZIP, TAR, and gzip archives.

6 modules

ModuleDescription
Gunzip 압축 해제gzip으로 압축된 파일 해제
Gzip 압축단일 파일을 gzip으로 압축
TAR 아카이브 생성선택적 gzip/bz2/xz 압축으로 TAR 아카이브 생성
TAR 아카이브 추출TAR 아카이브에서 파일 추출 (압축 자동 감지)
ZIP 아카이브 생성파일 목록에서 ZIP 아카이브 생성
ZIP 아카이브 추출ZIP 아카이브에서 파일 추출

Modules

Gunzip 압축 해제

archive.gunzip

gzip으로 압축된 파일 해제

Parameters:

NameTypeRequiredDefaultDescription
input_pathstringYes-gzip으로 압축된 파일의 경로
output_pathstringNo-압축 해제된 파일의 경로 (기본값은 .gz 확장자 없는 입력 경로)

Output:

FieldTypeDescription
pathstring압축 해제된 파일의 경로
sizenumber압축 해제된 파일 크기 (바이트)

Example: Decompress a gzip file

yaml
input_path: /tmp/data.txt.gz

Gzip 압축

archive.gzip

단일 파일을 gzip으로 압축

Parameters:

NameTypeRequiredDefaultDescription
input_pathstringYes-압축할 파일의 경로
output_pathstringNo-압축된 파일의 경로 (기본값은 입력 경로 + .gz)

Output:

FieldTypeDescription
pathstring압축된 파일의 경로
original_sizenumber원본 파일 크기 (바이트)
compressed_sizenumber압축된 파일 크기 (바이트)
rationumber압축 비율 (압축된 크기 / 원본 크기)

Example: Compress a file with gzip

yaml
input_path: /tmp/data.txt

TAR 아카이브 생성

archive.tar_create

선택적 gzip/bz2/xz 압축으로 TAR 아카이브 생성

Parameters:

NameTypeRequiredDefaultDescription
output_pathstringYes-출력 TAR 파일의 경로
filesarrayYes-아카이브에 포함할 파일 경로 목록
compressionselect (none, gzip, bz2, xz)Nogzip압축 방법

Output:

FieldTypeDescription
pathstring생성된 TAR 파일의 경로
sizenumber아카이브 크기 (바이트)
file_countnumber아카이브 내 파일 수

Example: Create gzipped TAR archive

yaml
output_path: /tmp/archive.tar.gz
files: ["/tmp/file1.txt", "/tmp/file2.txt"]
compression: gzip

TAR 아카이브 추출

archive.tar_extract

TAR 아카이브에서 파일 추출 (압축 자동 감지)

Parameters:

NameTypeRequiredDefaultDescription
archive_pathstringYes-추출할 TAR 아카이브 경로
output_dirstringYes-파일을 추출할 디렉토리

Output:

FieldTypeDescription
extracted_filesarray추출된 파일 경로 목록
total_sizenumber추출된 파일의 총 크기 (바이트)

Example: Extract TAR.GZ archive

yaml
archive_path: /tmp/archive.tar.gz
output_dir: /tmp/extracted/

ZIP 아카이브 생성

archive.zip_create

파일 목록에서 ZIP 아카이브 생성

Parameters:

NameTypeRequiredDefaultDescription
output_pathstringYes-출력 ZIP 파일의 경로
filesarrayYes-아카이브에 포함할 파일 경로 목록
compressionselect (stored, deflated, bzip2, lzma)Nodeflated압축 방법
passwordstringNo-아카이브 보호를 위한 선택적 비밀번호 (추출 전용, 제한적 지원)

Output:

FieldTypeDescription
pathstring생성된 ZIP 파일의 경로
sizenumber아카이브 크기 (바이트)
file_countnumber아카이브 내 파일 수

Example: Create ZIP from files

yaml
output_path: /tmp/archive.zip
files: ["/tmp/file1.txt", "/tmp/file2.txt"]
compression: deflated

ZIP 아카이브 추출

archive.zip_extract

ZIP 아카이브에서 파일 추출

Parameters:

NameTypeRequiredDefaultDescription
archive_pathstringYes-추출할 ZIP 아카이브의 경로
output_dirstringYes-파일을 추출할 디렉토리
passwordstringNo-암호화된 아카이브의 비밀번호

Output:

FieldTypeDescription
extracted_filesarray추출된 파일 경로 목록
total_sizenumber추출된 파일의 총 크기 (바이트)

Example: Extract ZIP archive

yaml
archive_path: /tmp/archive.zip
output_dir: /tmp/extracted/

Released under the Apache 2.0 License.