{"id":16164760,"url":"https://github.com/aperezdc/ltree","last_synced_at":"2025-06-19T22:07:15.121Z","repository":{"id":142776939,"uuid":"127816651","full_name":"aperezdc/ltree","owner":"aperezdc","description":"Utility to work with file lists in the format of the BSD mtree tool","archived":false,"fork":false,"pushed_at":"2021-10-07T21:58:23.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T04:48:57.503Z","etag":null,"topics":["libarchive","mtree","tool","utility"],"latest_commit_sha":null,"homepage":null,"language":"C","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/aperezdc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-02T21:52:54.000Z","updated_at":"2021-10-07T21:58:25.000Z","dependencies_parsed_at":"2023-04-27T00:04:27.812Z","dependency_job_id":null,"html_url":"https://github.com/aperezdc/ltree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aperezdc/ltree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aperezdc%2Fltree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aperezdc%2Fltree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aperezdc%2Fltree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aperezdc%2Fltree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aperezdc","download_url":"https://codeload.github.com/aperezdc/ltree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aperezdc%2Fltree/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260838518,"owners_count":23070604,"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":["libarchive","mtree","tool","utility"],"created_at":"2024-10-10T02:47:38.877Z","updated_at":"2025-06-19T22:07:10.103Z","avatar_url":"https://github.com/aperezdc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"ltree\n=====\n\nUtility to work with file lists in the format of the BSD\n[mtree(8)](https://man.openbsd.org/mtree) tool.\n\n**Note:** This is *not* a replacement for `mtree`, and you may want to have\nboth installed side-by-side.\n\n\nBuilding\n--------\n\nMake sure you have [libarchive](https://www.libarchive.org/) and its\ndevelopment headers installed. [Meson](http://mesonbuild.com) is used for\nconfiguration and [Ninja](https://ninja-build.org/) for building;\n[Samurai](https://github.com/michaelforney/samurai) can be used for building\nas well:\n\n```sh\nmeson build\nninja -C build\n```\n\n\nUsage\n-----\n\nFile lists in `mtree` format are accepted on standard input.\n\n- `ltree -l \u003c MTREE` prints out the contents of the list. The `-l` flag can\n  be omitted, as this is the default mode.\n\n- `ltree -C \u003c MTREE` checks whether the files from the list are present in the\n  file system and match the specification.\n\nOperations which act on the file system accept a `-p PATH` command line option\nwhich prepends `PATH` as prefix to all the file names in the list. Verbose\noperation can be enabled with `-v`, which lists each entry as it is processed.\n\nAny operation which prints paths in the output can output them delimited by\nnull characters by passing `-0` as a command line option.\n\n\nInteroperability\n----------------\n\nThe `ltree` tool can use file lists in the [format recognized by\nlibarchive](https://github.com/libarchive/libarchive/wiki/ManPageMtree5).\n\nOn GNU/Linux the [mtree port](https://github.com/archiecobbs/mtree-port) by\n[@archiecobbs](https://github.com/archiecobbs/) is known to generate\ncompatible output.\n\n\nLicense\n-------\n\nDistributed under terms of the [MIT/X11\nlicense](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faperezdc%2Fltree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faperezdc%2Fltree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faperezdc%2Fltree/lists"}