anchor.diff:      CanonicalPath.
   
   %%--------------------------------------------------------------------
  +%% @doc Updates entry ctime
  +%%--------------------------------------------------------------------
  +-spec update_ctime(fslogic_worker:file(), Time :: file_meta:time()) -> ok.
  +update_ctime(Entry, Time) ->
  +    {ok, #document{value = Meta} = Doc} = file_meta:get(Entry),
  +    {ok, _} = file_meta:update(Doc, #{ctime => Time}),
  +
  +    spawn(
  +        fun() ->
  +            fslogic_event:emit_file_sizeless_attrs_update(
  +                Doc#document{value = Meta#file_meta{ctime = Time}})
  +        end),
  +    ok.
  +
  +%%--------------------------------------------------------------------
   %% @doc Updates entry mtime and ctime
   %%--------------------------------------------------------------------
   -spec update_mtime_ctime(fslogic_worker:file(), Time :: file_meta:time()) -> ok.
  
positive.code:     ok | logical_file_manager:error_reply().
  -check_permissions([{?delete_subcontainer, {parent, 2}}, {?add_subcontainer, {parent, {path, 3}}}]).
  rename_dir(CTX, SourceEntry, CanonicalTargetPath, LogicalTargetPath) ->
      case check_dir_preconditions(CTX, SourceEntry, CanonicalTargetPath) of
          ok ->
              rename_select(CTX, SourceEntry, CanonicalTargetPath, LogicalTargetPath);
          Error ->
  
negative.code:                 ?DIRECTORY_TYPE ->
                      {error, ?EISDIR};
                  _ ->
                      logical_file_manager:unlink(SessId, {path, LogicalTargetPath})
              end
      end.
  
  