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

Function DelFile

Libraries/unrar/filefn.cpp:457–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455
456
457bool DelFile(const wchar *Name)
458{
459#ifdef _WIN_ALL
460 bool Success=DeleteFile(Name)!=0;
461 if (!Success)
462 {
463 wchar LongName[NM];
464 if (GetWinLongPath(Name,LongName,ASIZE(LongName)))
465 Success=DeleteFile(LongName)!=0;
466 }
467 return Success;
468#else
469 char NameA[NM];
470 WideToChar(Name,NameA,ASIZE(NameA));
471 bool Success=remove(NameA)==0;
472 return Success;
473#endif
474}
475
476
477

Callers 3

DeleteMethod · 0.85
FileCreateFunction · 0.85
UnixSymlinkFunction · 0.85

Calls 2

GetWinLongPathFunction · 0.85
WideToCharFunction · 0.85

Tested by

no test coverage detected