Debian Codegraph @

README.md

raw symbols SCIP
1 # File Id
2
3 [![ยป Docs](https://flat.badgen.net/badge/api/docs.rs/df3600)][docs]
4
5 A utility to read file IDs.
6
7 Modern file systems assign a unique ID to each file. On Linux and MacOS it is called an `inode number`, on Windows it is called `file index`.
8 Together with the `device id`, a file can be identified uniquely on a device at a given time.
9
10 Keep in mind though, that IDs may be re-used at some point.
11
12 ## Example
13
14 ```rust
15 let file_id = file_id::get_file_id(path).unwrap();
16
17 println!("{file_id:?}");
18 ```
19
20 ## Features
21
22 - `serde` for serde support, off by default
23
24 [docs]: https://docs.rs/file-id