file-id

Crates.iofile-id
lib.rsfile-id
version0.2.2
sourcesrc
created_at2023-05-17 00:13:41.688575
updated_at2024-10-25 16:53:49.418901
descriptionUtility for reading inode numbers (Linux, MacOS) and file IDs (Windows)
homepagehttps://github.com/notify-rs/notify
repositoryhttps://github.com/notify-rs/notify.git
max_upload_size
id866453
size29,420
watchmakers (github:notify-rs:watchmakers)

documentation

https://docs.rs/notify

README

File Id

ยป Docs

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

  • serde for serde support, off by default
Commit count: 788

cargo fmt