anchor.diff:      end.
   
   restore_chunked(Tab, Strategy, Simulate) ->
  +    ?Debug("restoring ~p by ~p", [Tab, Strategy]),
       {_, SnapDir} = application:get_env(imem, imem_snapshot_dir),
       Table = if
           is_atom(Tab) -> filename:rootname(filename:basename(atom_to_list(Tab)));
  
positive.code:             Files = [F
                      || F <- filelib:wildcard(filename:join([UnZipPath,"**","*.bkp"]))
                              , re:run(F,TabRegEx,[{capture, all, list}]) =/= nomatch],
              Res = lists:foldl(
                  fun(SnapFile, Acc) ->
                      case filelib:is_dir(SnapFile) of
  
negative.code:     restore_chunked(Tab, SnapFile, Strategy, Simulate).
  
  restore_chunked(Tab, SnapFile, Strategy, Simulate) ->
      ?Debug("restoring ~p from ~p by ~p", [Tab, SnapFile, Strategy]),
      {ok, FHndl} = file:open(SnapFile, [read, raw, binary]),
      if (Simulate /= true) andalso (Strategy =:= destroy)
          -> catch imem_meta:truncate_table(Tab);
  