anchor.diff:           }).
   
   -record(metric_dir, {
  -          name :: nonempty_string(),
  +          name :: nonempty_string() | undefined,
             metrics :: orddict:orddict(),
             dirs :: orddict:orddict()
            }).
  +
  +-define(FINDER_UPDATE_INTERVAL, 60000).
  +-define(FINDER_SPECIAL_CHARS, [<<"*">>, <<"?">>, <<"{">>, <<"}">>]).
  +-define(EMPTY_METRIC_DIR, #metric_dir{metrics=orddict:new(), dirs=orddict:new()}).
   
   %%%===================================================================
   %%% API
  
positive.code: 
  new_metric_dir([Path], NewMetric) ->
      Name = NewMetric#metric_file.name,
      [{Path, #metric_dir{name=Path,
                          metrics=orddict:from_list([{Name, NewMetric}]),
                          dirs=orddict:new()}}];
  
  new_metric_dir([Path | Paths], NewMetric) ->
      #metric_dir{name=Path,
                  metrics=orddict:new(),
                  dirs=orddict:from_list(new_metric_dir(Paths, NewMetric))}.
  
  
  find_metrics(Paths, Dir) ->
  
negative.code: %%--------------------------------------------------------------------
  init([]) ->
      DataDir = statser_config:get_data_dir(),
      gen_server:cast(self(), prepare),
      {ok, #state{metrics=?EMPTY_METRIC_DIR, data_dir=DataDir}}.
  
  %%--------------------------------------------------------------------
  %% @private
  