{"id":19057408,"url":"https://github.com/alexeveritt/csharppathresolver","last_synced_at":"2025-04-24T05:21:53.216Z","repository":{"id":82164208,"uuid":"21246621","full_name":"alexeveritt/CSharpPathResolver","owner":"alexeveritt","description":"C# Relative path resolver for file paths and urls","archived":false,"fork":false,"pushed_at":"2014-06-29T08:31:42.000Z","size":172,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T13:09:43.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/alexeveritt.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-06-26T16:04:48.000Z","updated_at":"2022-12-27T13:52:43.000Z","dependencies_parsed_at":"2023-02-28T07:45:42.024Z","dependency_job_id":null,"html_url":"https://github.com/alexeveritt/CSharpPathResolver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeveritt%2FCSharpPathResolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeveritt%2FCSharpPathResolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeveritt%2FCSharpPathResolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeveritt%2FCSharpPathResolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexeveritt","download_url":"https://codeload.github.com/alexeveritt/CSharpPathResolver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250567889,"owners_count":21451517,"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-11-08T23:56:33.815Z","updated_at":"2025-04-24T05:21:53.188Z","avatar_url":"https://github.com/alexeveritt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"CSharpPathResolver\n==================\nThe CSharpPathResolver makes it easy to resolve relative file paths in c# using a single call. Simply pass in the base path and the relative path and the resolver will return the new target path.\nBelow is an example of the types of path that are supported\n* C:\\Path1\\Path2\n* \\\\\\\\Server01\\Path1\\Path2\n* //www.somedomain.com/path1\n* ftp://ftp.somewhere.com/path1/path2\n* http://localhost:23512/path1/path2\n* /src/path1/path2\n\nIf you are not sure of the format of the path that you are resolving then you would use the following command. This method will automatically detect the path style and resolve it correctly.\n```\nvar resolver = new PathResolver();\nvar resolvedPath = resolver.ResolvePath(\"C:\\Path1\\Path2\", \"..\\Path3\");\n// resolvedPath == \"C:\\Path1\\Path3\"\n```\nIf you know the type of path you are resolving then you would call the specific resolve function.\n``` \nPathResolver.ResolveUrlPath(\"http://bytechaser.com/path1/path2\", \"../../path3/path4\")\n// resolvedPath == \"http://bytechaser.com/path3/path4\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeveritt%2Fcsharppathresolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexeveritt%2Fcsharppathresolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeveritt%2Fcsharppathresolver/lists"}