feat: void.cat migration binary

This commit is contained in:
2024-09-26 14:38:00 +01:00
parent 7a68ec800a
commit 5e7f602890
7 changed files with 339 additions and 36 deletions

View File

@ -220,7 +220,7 @@ impl FileStore {
temp_dir().join(id.to_string())
}
fn map_path(&self, id: &Vec<u8>) -> PathBuf {
pub fn map_path(&self, id: &Vec<u8>) -> PathBuf {
let id = hex::encode(id);
Path::new(&self.settings.storage_dir)
.join(&id[0..2])