use crate::vector::FileVector; pub struct FileCache { pub vector : FileVector, pub path : String, } impl FileCache { pub fn from_line(line : String) -> Self { let ls : Vec = line.split(',').map(|s| s.to_string()).collect(); let v = FileVector::from_string(ls[1].clone()); let p = ls[0].clone().replace("\0", ","); Self { vector : v, path : p } } }