anchor.diff:          {ok, OldPath} = logical_file_manager:get_file_path(
               SessionId, FileId
           ),
  -        DirPath = fslogic_path:dirname(OldPath),
  -        NewPath = fslogic_path:join([DirPath, NewName]),
  +        DirPathTokens = fslogic_path:split(fslogic_path:dirname(OldPath)),
  +        NewPath = fslogic_path:join(DirPathTokens ++ [NewName]),
           case logical_file_manager:mv(SessionId, {guid, FileId}, NewPath) of
               {ok, _} ->
                   ok;
  
positive.code:             {error, ?EACCES} ->
                  gui_error:report_warning(<<"Access denied.">>)
          end
      catch _:_ ->
          gui_error:report_warning(
              <<"Cannot rename file due to unknown error.">>)
      end;
  
negative.code:                 gui_error:report_warning(
                      <<"Cannot change permissions, invalid octal value.">>)
          end
      catch Error:Message ->
          ?error_stacktrace("Cannot change permissions via GUI - ~p:~p", [
              Error, Message
          ]),
          gui_error:report_warning(
              <<"Cannot change permissions due to unknown error.">>)
      end;
  