boxlang-zip

Automate ZIP archive creation, extraction, and modification in BoxLang via bx:zip.

16|78|Updated Nov 28, 2014
One-click install
npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-zip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-zip
Source: https://github.com/ortus-docs/coldbox-docs/tree/main/.agents/skills/boxlang-zip
Command: npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-zip

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the creation, extraction, listing, and modification of ZIP archives in BoxLang via the bx:zip component, reducing boilerplate and risk in archive workflows.

Core Features & Use Cases

  • Create archives from directories or files with optional overwriting and multiple sources with prefixes.
  • Extract archives completely or selectively, read entries, and modify archives by adding or deleting entries.
  • Encrypt archives, list contents, and implement common backup/restore patterns.

Quick Start

Zip the contents of /files into /tmp/archive.zip using bx:zip.

Frequently Asked Questions about boxlang-zip

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a ZIP archive from a directory in BoxLang?

To create a ZIP archive in BoxLang, use the bx:zip component to compress directory contents into a file like /tmp/archive.zip. You can configure compression levels, add multiple sources with prefixes, and set optional overwriting for your backup or deployment packaging workflows.

Can I extract specific files from a ZIP archive instead of unpacking everything?

Yes, you can extract specific files from a ZIP archive using selective extraction features in the bx:zip API. This allows you to filter archive entries by file patterns during extraction, preventing the need to unpack entire directories when you only need certain files.

Does BoxLang support password-protected ZIP files?

Yes, BoxLang supports password-protected ZIP files. The bx:zip component allows you to encrypt archives with password protection, securing your backup and deployment packaging files against unauthorized access during storage or transfer.

What is the best way to list the contents of a ZIP file in BoxLang?

The best way to list ZIP file contents in BoxLang is using the read and list operations provided by the bx:zip API. This functionality reads archive entries without extracting them, allowing you to inspect file names and structure before performing extraction or modification.

How do I modify an existing ZIP archive without recreating it?

You can modify an existing ZIP archive without recreating it by using the bx:zip component's modification features. This API supports adding new entries to or deleting entries from an existing archive, streamlining backup updates and deployment packaging adjustments.