pub async fn SaveIndex(index_directory: &Path, index: &FileIndex) -> Result<()>
Save index to disk with atomic write