| Crates.io | brk-file-id |
| lib.rs | brk-file-id |
| version | 0.2.3 |
| created_at | 2025-09-28 09:08:09.555772+00 |
| updated_at | 2025-09-28 09:08:09.555772+00 |
| description | Utility for reading inode numbers (Linux, MacOS) and file IDs (Windows) |
| homepage | https://github.com/notify-rs/notify |
| repository | https://github.com/notify-rs/notify.git |
| max_upload_size | |
| id | 1858133 |
| size | 29,451 |
A utility to read file IDs.
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.
Together with the device id, a file can be identified uniquely on a device at a given time.
Keep in mind though, that IDs may be re-used at some point.
let file_id = file_id::get_file_id(path).unwrap();
println!("{file_id:?}");
serde for serde support, off by default