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:     }
    ].
  
  add_task_t_(_) ->
    [
      ?_assertEqual(queued,fyler_uploader:upload_to_aws("", "./tmp/test", "", "", self()))
  
negative.code:   erlang:unlink(Pid),
    Pid.
  
  setup2_() ->
    meck:new(aws_cli,[non_strict]),
    meck:expect(aws_cli, copy_folder, fun(_,_,_) -> timer:sleep(6000) end),
    meck:expect(aws_cli, dir_exists, fun(_) -> true end),
    filelib:ensure_dir("./tmp/test"),
    file:make_dir("./tmp/test"),
    lager:start(),
    {ok,Pid} = fyler_uploader:start_link(),
    erlang:unlink(Pid),
    Pid.
  
  cleanup_(Pid) ->
    meck:unload(aws_cli),
    application:stop(lager),
  