anchor.diff:                ?E({dir_not_found,Dir}),
                 {error, dir_not_found}
             end,
  -  
     if is_pid(Handler) 
       ->
         Handler ! Reply;
       true -> ok
  -  end,
  -
  -  {reply,Reply,State};
  -
  -
  -handle_task(_Task,State) -> {reply,undefined,State}.
  -
  -%%--------------------------------------------------------------------
  -%% @private
  -%% @doc
  -%% This function is called by a gen_server when it is about to
  -%% terminate. It should be the opposite of Module:init/1 and do any
  -%% necessary cleaning up. When it returns, the gen_server terminates
  -%% with Reason. The return value is ignored.
  -%%
  -%% @spec terminate(Reason, State) -> void()
  -%% @end
  -%%--------------------------------------------------------------------
  -terminate(_Reason, _State) ->
  -  ok.
  -
  -%%--------------------------------------------------------------------
  -%% @private
  -%% @doc
  -%% Convert process state when code is changed
  -%%
  -%% @spec code_change(OldVsn, State, Extra) -> {ok, NewState}
  -%% @end
  -%%--------------------------------------------------------------------
  -code_change(_OldVsn, State, _Extra) ->
  -  {ok, State}.
  -
  -%%%===================================================================
  -%%% Internal functions
  -%%%===================================================================
  +  end.
   
   
   -ifdef(TEST).
  
positive.code:   erlang:unlink(Pid),
    Pid.
  
  cleanup_(Pid) ->
    meck:unload(aws_cli),
    application:stop(lager),
  
negative.code:   ].
  
  
  handle_multiple_tasks_test_() ->
    [
      {setup, fun setup2_/0, fun cleanup_/1, 
        [
          {timeout, 7000, [add_many_tasks_t_()]}
        ]
      }
    ].
  
  add_many_tasks_t_() ->
    fun() ->
      fyler_uploader:upload_to_aws("", "./tmp/test", "", "", self()),
      fyler_uploader:upload_to_aws("", "./tmp/test", "", "", self()),
      receive
        {upload_complete,_} ->
          receive
            {upload_complete, _} -> 
                ?assert(true)
          after 1500
            -> ?assert(false)
          end   
      after 6500
        -> ?assert(false)
      end
    end
  .
  
  
  -endif.