{"id":15032823,"url":"https://github.com/ruby/find","last_synced_at":"2025-04-09T10:05:43.920Z","repository":{"id":37824658,"uuid":"266090572","full_name":"ruby/find","owner":"ruby","description":"This module supports top-down traversal of a set of file paths","archived":false,"fork":false,"pushed_at":"2024-05-17T02:06:45.000Z","size":87,"stargazers_count":16,"open_issues_count":1,"forks_count":9,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-02T03:56:36.102Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.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":"2020-05-22T11:09:28.000Z","updated_at":"2025-03-30T00:33:35.000Z","dependencies_parsed_at":"2024-05-17T02:47:38.139Z","dependency_job_id":"3f098239-1b79-4e6c-83bb-c80ac8de0c8b","html_url":"https://github.com/ruby/find","commit_stats":{"total_commits":75,"total_committers":21,"mean_commits":"3.5714285714285716","dds":0.76,"last_synced_commit":"f628420fe43521094a5eb35b11a528c99593ad35"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ffind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ffind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ffind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ffind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/find/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"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":["ruby"],"created_at":"2024-09-24T20:19:30.854Z","updated_at":"2025-04-09T10:05:43.889Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Find\n\nThe +Find+ module supports the top-down traversal of a set of file paths.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'find'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install find\n\n## Usage\n\nFor example, to total the size of all files under your home directory,\nignoring anything in a \"dot\" directory (e.g. $HOME/.ssh):\n\n```ruby\nrequire 'find'\n\ntotal_size = 0\n\nFind.find(ENV[\"HOME\"]) do |path|\n  if FileTest.directory?(path)\n    if File.basename(path).start_with?('.')\n      Find.prune       # Don't look any further into this directory.\n    else\n      next\n    end\n  else\n    total_size += FileTest.size(path)\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/find.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Ffind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Ffind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Ffind/lists"}