refind 0.1.2

Cross platform file locator by file ID. Keep track of files even after they're renamed or moved.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::NormalizePathTrait;
use std::path::PathBuf;

#[test]
fn hello() {
    let path = PathBuf::from("Cargo.toml").normalize().unwrap();
    let id = crate::get_id(path.clone()).unwrap();
    let realpath = crate::find_path(&id).unwrap();
    assert_eq!(realpath, path);
}