MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / Rename

Method Rename

Libraries/unrar/file.cpp:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279bool File::Rename(const wchar *NewName)
280{
281 // No need to rename if names are already same.
282 bool Success=wcscmp(FileName,NewName)==0;
283
284 if (!Success)
285 Success=RenameFile(FileName,NewName);
286
287 if (Success)
288 wcsncpyz(FileName,NewName,ASIZE(FileName));
289
290 return Success;
291}
292
293
294bool File::Write(const void *Data,size_t Size)

Callers

nothing calls this directly

Calls 2

RenameFileFunction · 0.85
wcsncpyzFunction · 0.85

Tested by

no test coverage detected