{"id":21001155,"url":"https://github.com/jabedude/ofiles","last_synced_at":"2025-05-14T23:32:30.868Z","repository":{"id":45230643,"uuid":"258316517","full_name":"jabedude/ofiles","owner":"jabedude","description":"Small library for associating processes and open files","archived":false,"fork":false,"pushed_at":"2024-02-26T00:47:02.000Z","size":31,"stargazers_count":9,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T01:11:07.700Z","etag":null,"topics":["filesystem","processes","sockets"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jabedude.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-04-23T19:59:47.000Z","updated_at":"2024-04-20T13:18:30.000Z","dependencies_parsed_at":"2023-01-30T18:30:27.177Z","dependency_job_id":null,"html_url":"https://github.com/jabedude/ofiles","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/jabedude%2Fofiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Fofiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Fofiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Fofiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabedude","download_url":"https://codeload.github.com/jabedude/ofiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254248401,"owners_count":22039007,"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":["filesystem","processes","sockets"],"created_at":"2024-11-19T08:13:59.488Z","updated_at":"2025-05-14T23:32:25.787Z","avatar_url":"https://github.com/jabedude.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ofiles\n\n[![crates.io](https://img.shields.io/crates/v/ofiles.svg)](https://crates.io/crates/ofiles)\n![Rust](https://github.com/jabedude/ofiles/workflows/Rust/badge.svg)\n[![Documentation](https://docs.rs/ofiles/badge.svg)](https://docs.rs/ofiles/)\n[![license](https://img.shields.io/badge/license-BSD3.0-blue.svg)](https://github.com/jabedude/ofiles/LICENSE)\n\nA tiny library for determining what process has a file/directory opened for reading/writing/etc. \nI wrote this for another project but I hope will be useful in other applications.\n\nExample:\n\n```rust\nuse ofiles::opath;\n\nlet mut pids = opath(\"/path/to/a/file-or-directory\").unwrap();\n\n// Now we have a Vec of process ID's that have the `/path/to/a/file-or-directory` open\nfor pid in pids {\n    println!(\"Process {} has {} open!\", pid, \"/path/to/a/file-or-directory\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabedude%2Fofiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabedude%2Fofiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabedude%2Fofiles/lists"}