Skip to content

Small library for associating processes and open files

License

Notifications You must be signed in to change notification settings

jabedude/ofiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofiles

crates.io Rust Documentation license

A tiny library for determining what process has a file/directory 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-or-directory").unwrap();

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

About

Small library for associating processes and open files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages