mirror of
https://github.com/encounter/notify.git
synced 2026-03-30 11:31:42 -07:00
4a001215b3
the experiment got removed in serde-rs/serde#2590
File Id
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.
Example
let file_id = file_id::get_file_id(path).unwrap();
println!("{file_id:?}");
Features
serdefor serde support, off by default