{"id":13507953,"url":"https://github.com/lowks/Radpath","last_synced_at":"2025-03-30T09:33:17.259Z","repository":{"id":14962140,"uuid":"17686952","full_name":"lowks/Radpath","owner":"lowks","description":"Path library for Elixir inspired by Python's pathlib","archived":false,"fork":false,"pushed_at":"2021-02-24T03:58:45.000Z","size":1815,"stargazers_count":22,"open_issues_count":8,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-22T08:48:45.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lonelythinker/yii2-authclient","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lowks.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-03-12T22:51:10.000Z","updated_at":"2025-01-19T11:27:56.000Z","dependencies_parsed_at":"2022-08-30T09:20:29.738Z","dependency_job_id":null,"html_url":"https://github.com/lowks/Radpath","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowks%2FRadpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowks%2FRadpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowks%2FRadpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowks%2FRadpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowks","download_url":"https://codeload.github.com/lowks/Radpath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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-08-01T02:00:44.114Z","updated_at":"2025-03-30T09:33:16.845Z","avatar_url":"https://github.com/lowks.png","language":"Elixir","funding_links":[],"categories":["Files and Directories"],"sub_categories":[],"readme":"# Radpath\n\n[![Build Status](https://travis-ci.org/lowks/Radpath.png?branch=master)](https://travis-ci.org/lowks/Radpath)\n[![Build Status](https://drone.io/github.com/lowks/Radpath/status.png)](https://drone.io/github.com/lowks/Radpath/latest)\n[![wercker status](https://app.wercker.com/status/10f2bf7288af1be5c4e39f25367bb3b7/s/master \"wercker status\")](https://app.wercker.com/project/byKey/10f2bf7288af1be5c4e39f25367bb3b7)\n[![Circle CI](https://circleci.com/gh/lowks/Radpath/tree/master.png?style=badge)](https://circleci.com/gh/lowks/Radpath/tree/master)\n[![Inline docs](http://inch-ci.org/github/lowks/Radpath.svg?branch=master\u0026style=flat)](http://inch-ci.org/github/lowks/Radpath)\n[![Build Status](https://snap-ci.com/lowks/Radpath/branch/master/build_image)](https://snap-ci.com/lowks/Radpath/branch/master/build_image)\n[![Coverage Status](https://coveralls.io/repos/lowks/Radpath/badge.png?branch=master)](https://coveralls.io/r/lowks/Radpath?branch=master)\n\nA library for dealing with paths in Elixir largely inspired by Python's pathlib.\n\n\n## Getting Started\n\nTo use Radpath, add a dependency in your mix:\n\n```elixir\ndef deps do\n  [ { :Radpath, github: \"lowks/Radpath\"}]\nend\n```\n\nthen `mix deps.get` fetches dependencies and compiles Radpath.\n\n## Status\n\nDeveloped whenever I can find the time.\n\n## Running Tests\n\nRunning tests against a stable release of Elixir defined by 'STABLE_ELIXIR_VERSION' in the Makefile:\n\n```bash\nmake ci\n```\n\nRunning tests against your system's Elixir:\n\n```bash\nmake\n```\n\n## Docs (Lite Version)\n\nTo list down files in a path:\n\n```elixir\nRadpath.files(\"/home/lowks/Documents\")\n```\n\nor if you wanted to filter out certain files with pdf extensions:\n\n```elixir\nRadpath.files(\"/home/lowks/Documents\", \"pdf\")\n```\n\nListing down only directories:\n\n```elixir\nRadpath.dirs(\"/home/lowks\")                  \n```\n\nTo create symlink:\n\n```elixir\nRadpath.symlink(source, destination)\n```\n\nTo create tempfile:\n\n```elixir\n{status, fd, file_path}  = Radpath.mktempfile\nIO.write fd, \"hoho\"\nFile.close fd\nFile.read! filepath\n\"hoho\"\nFile.rm! filepath\n```\n\nThis uses all the defaults\n\nTo customize the location plus the extension: \n\n```elixir\n{_, fd, filepath} = Radpath.mktempfile(\".log\", \"/home/lowks/Downloads\")\nIO.write fd, \"hoho\"\nFile.read! filepath\n\"hoho\"\nFile.close! filepath\n```\n\nThe default is \".log\". Checkout the rest of the docs in the docs folder.\n\nRun `mix docs` to generate a nice docs in a local folder or you can read them online: [Radpath hexdocs](http://hexdocs.pm/radpath/ \"Hexdocs link for Radpath\")\n\nCheck out [test examples](./test/radpath_test.exs) for usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowks%2FRadpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowks%2FRadpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowks%2FRadpath/lists"}