pub fn write(root: &Path) -> Result<()>
Write the snapshot to SNAPSHOT_PATH under root.
SNAPSHOT_PATH
root