{"id":23284220,"url":"https://github.com/agilecreativity/dir-archiver","last_synced_at":"2025-07-05T03:38:52.845Z","repository":{"id":59152920,"uuid":"55501980","full_name":"agilecreativity/dir-archiver","owner":"agilecreativity","description":"Archive directories having specific depth from a given directory","archived":false,"fork":false,"pushed_at":"2016-06-12T02:13:55.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T11:57:21.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/agilecreativity.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-05T11:22:57.000Z","updated_at":"2016-04-05T11:56:18.000Z","dependencies_parsed_at":"2022-09-19T10:43:15.729Z","dependency_job_id":null,"html_url":"https://github.com/agilecreativity/dir-archiver","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/agilecreativity/dir-archiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fdir-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fdir-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fdir-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fdir-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agilecreativity","download_url":"https://codeload.github.com/agilecreativity/dir-archiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fdir-archiver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263677008,"owners_count":23494615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-12-20T01:38:46.159Z","updated_at":"2025-07-05T03:38:52.827Z","avatar_url":"https://github.com/agilecreativity.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Directory Archiver (dir-archiver)\n\nArchive directory having the given depth from a given directory.\nTL;DR: `dir-archiver --input-dir ~/projects --depth 2 --sep \"__\" -output-dir ~/archives --commit`\n\n[![Gem Version](https://badge.fury.io/rb/dir-archiver.svg)][gem]\n[![Dependency Status](https://gemnasium.com/agilecreativity/dir-archiver.png)][gemnasium]\n\n[gem]: http://badge.fury.io/rb/dir-archiver\n[gemnasium]: https://gemnasium.com/agilecreativity/dir-archiver\n\n### Installation\n\n```sh\n# Install the gem\ngem install dir-archiver\n\n# refresh your gem just in case\nrbenv rehash\n\n# Get list of options just type the name of the gem\ngithub_archiver\n```\n\nYou should see something like\n\n```\nUsage: dir-archiver [options]\n\nSpecific options:\n    -i, --input-dir INPUT_DIR        where INPUT_DIR is starting directory\n                                     If not specified, current directory will be used\n    -d, --depth NUMBER               where NUMBER is depth of the directory from the starting directory\n                                     If not specified, 1 will be used\n    -s, --seperator [SEP]            The seperator string to be used\n                                     If not specified, '__' will be used\n    -o, --output-dir OUTPUT_DIR      where OUTPUT_DIR is output directory\n                                     If not specified, current directory will be used\n    -c, --[no-]commit                Commit your action\n                                     default to --no-commit e.g. dry-run only\n\nCommon options:\n    -h, --help                       Show this message\n\n Example Usage:\n\n a) archive all immediate directories from the given directory (default to 1 level)\n\n $cd ~/inputs/projects\n $dir-archiver --commit\n\n b) archive all directory 2 level depth (dry-run)\n\n $dir-archiver -i ~/inputs/projects -d 2 -s '__' -o ~/outputs/archives\n\n c) archive all directory 2 level depth (commit action)\n\n $dir-archiver -i ~/inputs/projects -d 2 -s '__' -o ~/outputs/archives\n```\n\n### Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n[Thor]: https://github.com/erikhuda/thor\n[Minitest]: https://github.com/seattlerb/minitest\n[RSpec]: https://github.com/rspec\n[Guard]: https://github.com/guard/guard\n[Yard]: https://github.com/lsegal/yard\n[Pry]: https://github.com/pry/pry\n[Rubocop]: https://github.com/bbatsov/rubocop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fdir-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagilecreativity%2Fdir-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fdir-archiver/lists"}