{"id":17317887,"url":"https://github.com/darkskygit/path-ext","last_synced_at":"2025-10-06T19:48:58.556Z","repository":{"id":57653548,"uuid":"287550942","full_name":"darkskygit/path-ext","owner":"darkskygit","description":"Provide convenient methods for path operations","archived":false,"fork":false,"pushed_at":"2024-08-14T18:43:46.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T16:56:59.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/path-ext","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkskygit.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":"2020-08-14T14:24:04.000Z","updated_at":"2024-08-14T18:43:49.000Z","dependencies_parsed_at":"2022-08-26T07:10:51.573Z","dependency_job_id":null,"html_url":"https://github.com/darkskygit/path-ext","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/darkskygit%2Fpath-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkskygit%2Fpath-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkskygit%2Fpath-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkskygit%2Fpath-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkskygit","download_url":"https://codeload.github.com/darkskygit/path-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240222328,"owners_count":19767458,"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-15T13:18:07.299Z","updated_at":"2025-10-06T19:48:53.508Z","avatar_url":"https://github.com/darkskygit.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# path-ext\n\nProvide convenient methods for path operations\n\n# Using\n\n```rust\nfn test_path() {\n    let path1 = PathBuf::from(\"Z:\\\\Movies\\\\[VCB-Studio] Fate Zero [Ma10p_1080p]\\\\[VCB-Studio] Fate Zero [04][Ma10p_1080p][x265_flac].mkv\");\n    println!(\"full path: {}\", path1.full_str());\n    println!(\"file ext: {}\", path1.ext_str());\n    println!(\"file stem: {}\", path1.stem_str());\n    println!(\"file name: {}\", path1.name_str());\n    let path2 = PathBuf::from(\"Z:\\\\Movies\");\n    let path3 = PathBuf::from(\"[VCB-Studio] Fate Zero [Ma10p_1080p]\\\\[VCB-Studio] Fate Zero [04][Ma10p_1080p][x265_flac].mkv\");\n    let path4 = path2.merge(path3);\n    println!(\"merged full path: {}\", path4.full_str());\n    println!(\"file: {}\", path1.is_file());\n    println!(\"dir: {}\", path2.is_dir());\n    if let Some(parent) = path4.parent() {\n        for path in parent.walk_dir(|p| p.is_dir()) {\n            println!(\"subdir: {}\", path.full_str());\n        }\n    }\n}\n```\n\noutput:\n\n```\nrunning 1 test\nfull path: Z:\\Movies\\[VCB-Studio] Fate Zero [Ma10p_1080p]\\[VCB-Studio] Fate Zero [04][Ma10p_1080p][x265_flac].mkv\nfile ext: mkv\nfile stem: [VCB-Studio] Fate Zero [04][Ma10p_1080p][x265_flac]\nfile name: [VCB-Studio] Fate Zero [04][Ma10p_1080p][x265_flac].mkv\nmerged full path: Z:\\Movies\\[VCB-Studio] Fate Zero [Ma10p_1080p]\\[VCB-Studio] Fate Zero [04][Ma10p_1080p][x265_flac].mkv\nfile: true\ndir: true\nsubdir: Z:\\Movies\\[VCB-Studio] Fate Zero [Ma10p_1080p]\nsubdir: Z:\\Movies\\[VCB-Studio] Fate Zero [Ma10p_1080p]\\CDs\nsubdir: Z:\\Movies\\[VCB-Studio] Fate Zero [Ma10p_1080p]\\Scans\nsubdir: Z:\\Movies\\[VCB-Studio] Fate Zero [Ma10p_1080p]\\SPs\ntest test_path ... ok\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkskygit%2Fpath-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkskygit%2Fpath-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkskygit%2Fpath-ext/lists"}