use std::{fs::*, hash::*, io, path::*};
pub fn file_modification_identifier<PathT>(path: PathT) -> io::Result<u64>
where
PathT: AsRef<Path>,
{
let modified = metadata(path)?.modified()?;
let mut hasher = DefaultHasher::default();
modified.hash(&mut hasher);
Ok(hasher.finish())
}