{"id":51043521,"url":"https://github.com/qoretechnologies/module-tar","last_synced_at":"2026-06-22T12:01:38.483Z","repository":{"id":334084927,"uuid":"1127277110","full_name":"qoretechnologies/module-tar","owner":"qoretechnologies","description":"Qore TAR archive module","archived":false,"fork":false,"pushed_at":"2026-06-05T18:15:47.000Z","size":286,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-06-05T20:09:18.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"QuakeC","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qoretechnologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-03T14:56:43.000Z","updated_at":"2026-06-05T18:15:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/qoretechnologies/module-tar","commit_stats":null,"previous_names":["qoretechnologies/module-tar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qoretechnologies/module-tar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-tar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-tar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-tar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-tar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qoretechnologies","download_url":"https://codeload.github.com/qoretechnologies/module-tar/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-tar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34647750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-22T12:01:37.629Z","updated_at":"2026-06-22T12:01:38.478Z","avatar_url":"https://github.com/qoretechnologies.png","language":"QuakeC","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qore TAR Module\n\nThis module provides TAR archive functionality for the Qore programming language.\n\n## Features\n\n- Create and extract TAR archives\n- Support for multiple compression methods: gzip, bzip2, xz, zstd, lz4\n- Support for multiple TAR formats: ustar, pax, GNU, V7\n- In-memory archive operations\n- Streaming API for large files\n- Stream-based I/O (read/write from Qore streams)\n- File metadata preservation (permissions, ownership, timestamps)\n- Support for special file types (symlinks, hardlinks, sparse files)\n- Archive encryption and multi-volume support\n\n## Requirements\n\n- Qore 2.0 or later\n- libarchive 3.0 or later\n- OpenSSL (optional, for encryption support)\n\n## Building\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\nsudo make install\n```\n\n## Quick Start\n\n### Creating an Archive\n\n```qore\n#!/usr/bin/env qore\n\n%requires tar\n\n# Create a gzip-compressed archive\nTarFile tar(\"backup.tar.gz\", \"w\");\ntar.add(\"file.txt\", \"Hello, World!\");\ntar.addFile(\"docs/readme.txt\", \"/path/to/readme.txt\");\ntar.addDirectory(\"empty_dir/\");\ntar.close();\n```\n\n### Reading an Archive\n\n```qore\n#!/usr/bin/env qore\n\n%requires tar\n\n# Open and read archive\nTarFile tar(\"backup.tar.gz\", \"r\");\n\n# List entries\nfor (hash\u003cTarEntryInfo\u003e entry : tar.entries()) {\n    printf(\"%s: %d bytes\\n\", entry.name, entry.size);\n}\n\n# Extract a specific file\nbinary data = tar.read(\"file.txt\");\ntar.close();\n```\n\n### Extracting an Archive\n\n```qore\n#!/usr/bin/env qore\n\n%requires tar\n\nTarFile tar(\"backup.tar.gz\", \"r\");\ntar.extractAll({\"destination\": \"/tmp/extracted\"});\ntar.close();\n```\n\n### In-Memory Archives\n\n```qore\n#!/usr/bin/env qore\n\n%requires tar\n\n# Create archive in memory\nTarFile tar();\ntar.add(\"data.txt\", \"Some data\");\nbinary archive_data = tar.toData();\n\n# Read from memory\nTarFile tar2(archive_data);\nstring content = tar2.readText(\"data.txt\");\n```\n\n## Data Provider\n\nThe module includes `TarDataProvider` for use with Qore's data provider framework:\n\n```qore\n%requires TarDataProvider\n\n# Get the data provider factory and navigate to the action\nAbstractDataProvider dp = DataProvider::getFactoryObjectFromStringEx(\"tar{}/archive/create\");\n\n# Execute the action\nhash\u003cauto\u003e result = dp.doRequest({\n    \"archive_path\": \"/tmp/backup.tar.gz\",\n    \"compression\": \"gzip\",\n    \"files\": (\n        {\"name\": \"file.txt\", \"text\": \"Hello, World!\"},\n    ),\n});\n```\n\n## License\n\nMIT License - see COPYING.MIT for details.\n\n## Copyright\n\nCopyright 2026 Qore Technologies, s.r.o.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-tar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqoretechnologies%2Fmodule-tar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-tar/lists"}