{"id":16641365,"url":"https://github.com/cmstead/iopathutils","last_synced_at":"2026-03-14T16:06:37.870Z","repository":{"id":72520598,"uuid":"141493368","full_name":"cmstead/IoPathUtils","owner":"cmstead","description":"Path and library directory utilities for the Io language","archived":false,"fork":false,"pushed_at":"2018-07-19T00:02:56.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T15:24:44.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Io","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/cmstead.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-18T21:44:33.000Z","updated_at":"2018-07-19T00:02:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7f87353-e72d-4b67-bbd3-6f069dab93ee","html_url":"https://github.com/cmstead/IoPathUtils","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"462deb93e8816f168c495c573c65a379c389c4d9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2FIoPathUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2FIoPathUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2FIoPathUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2FIoPathUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmstead","download_url":"https://codeload.github.com/cmstead/IoPathUtils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243159166,"owners_count":20245675,"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-12T07:46:20.860Z","updated_at":"2025-12-25T16:29:38.821Z","avatar_url":"https://github.com/cmstead.png","language":"Io","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoPathUtils\nPath and library directory utilities for the Io language\n\n## Setting Up ##\n\nSimply place LibPath.io and PathUtil.io in a search path.  It's often easiest to simply place them in the root of your package or project.\n\n## API ##\n\n### PathUtil ###\n\nPathUtil is a small collection of utilities for handling paths within your package or project\n\n**getDirectoryPaths**\n\nThis will return the names of all items found within a provided directory.  Directories named '.' and '..' will be omitted.\n\n```io\nPathUtil getDirectoryPaths(\"path/to/somewhere\")\n// returns list(\"path\", \"names\", \"here\")\n```\n\n**getSearchPathByDirName**\n\nThis will return the first path in the search paths which contains the provided directory name.\n\n```io\nPathUtil getSearchPathByDirName(\"myPackage\")\n// returns \"/path/to/myPackage\"\n```\n\n### LibPath ###\n\nLibPath is a proto for setting up and loading library directories within your package or project.  Though not intended for use by itself, this can be used as a rudimentary package setup tool.\n\n```io\nlibPathInstance := LibPath clone\n```\n\n**setLaunchPath**\n\nSet the launch path if different than the default -- System launchPath:\n\n```io\nlibPathInstance setLaunchPath(\"/my/preferred/launch/path\")\n```\n\n**setLibPathName**\n\nSet the path name for your libraries directory if different than the default -- \"libs\":\n\n```io\nlibPathInstance setLibPathName(\"someLibraries\")\n```\n\n**addPath**\n\nAdd a search path directly to the Importer search paths:\n\n```io\nlibPathInstance addPath(\"/my/search/path\")\n```\n\n**addPathWithBase**\n\nAdd a search path to Importer search paths with separate base path and path name:\n\n```io\nlibPathInstance addPathWithBase(\"/my/base/path\", \"pathName\")\n```\n\n**addPathWithBaseByDirName**\n\nAdd a search path to Importer search paths with a base path as it is found by directory name:\n\n```io\nlibPathInstance addPathWithBaseByDirName(\"myProject\", \"pathName\")\n```\n\n**addLibPaths**\n\nAdd all library paths to Importer search paths based on defined launch path and library path name\n\n```io\nlibPathInstance addLibPaths()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fiopathutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmstead%2Fiopathutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fiopathutils/lists"}