{"id":17210521,"url":"https://github.com/samth/find-parent-dir","last_synced_at":"2026-02-01T00:06:44.726Z","repository":{"id":66528702,"uuid":"13386810","full_name":"samth/find-parent-dir","owner":"samth","description":"Finding containing directories","archived":false,"fork":false,"pushed_at":"2013-11-25T22:20:13.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-12T02:08:02.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-07T15:01:27.000Z","updated_at":"2013-11-25T22:20:14.000Z","dependencies_parsed_at":"2023-02-20T08:15:26.100Z","dependency_job_id":null,"html_url":"https://github.com/samth/find-parent-dir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samth/find-parent-dir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Ffind-parent-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Ffind-parent-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Ffind-parent-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Ffind-parent-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samth","download_url":"https://codeload.github.com/samth/find-parent-dir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Ffind-parent-dir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259971379,"owners_count":22940012,"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-10-15T02:54:34.177Z","updated_at":"2026-02-01T00:06:44.696Z","avatar_url":"https://github.com/samth.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Finding containing directories\n\nThis package provides utilities for examining parent\ndirectories.  As an example, `git` looks for a `.git`\ndirectory in any parent directory of the current\ndirectory.  That would be expressed here as:\n\n    (find-parent-containing (current-directory) \".git\")\n\n## Exports\n\n```\n(find-parent-containing [start path-string?] [sentinel path-string?]) -\u003e (or/c #f path?)\n```\n\nFinds a parent directory of `start` that contains `sentinel`, or returns `#f`.\n\n```\n(find-parent-dir [start path-string?] [pred (-\u003e path? any)]) -\u003e (or/c #f path?)\n```\n\nFinds a parent directory of `start` that matches `pred` or returns `#f`.\n\nOriginally by @offby1 here: https://gist.github.com/offby1/6862232","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Ffind-parent-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamth%2Ffind-parent-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Ffind-parent-dir/lists"}