ofiles

Crates.ioofiles
lib.rsofiles
version0.2.0
sourcesrc
created_at2020-04-24 22:58:37.282879
updated_at2020-10-22 02:52:59.794917
descriptionIdentify processes that have opened files or sockets
homepagehttps://github.com/jabedude/ofiles/
repositoryhttps://github.com/jabedude/ofiles/
max_upload_size
id233823
size13,982
Josh Abraham (jabedude)

documentation

https://docs.rs/ofiles

README

ofiles

crates.io Rust Documentation license

A tiny library for determining what process has a file opened for reading/writing/etc. I wrote this for another project but I hope will be useful in other applications.

Example:

use ofiles::opath;

let mut pids = opath("/path/to/a/file").unwrap();

// Now we have a Vec of process ID's that have the `/path/to/a/file` open
for pid in pids {
    println!("Process {} has {} open!", pid, "/path/to/a/file");
}
Commit count: 31

cargo fmt