MCPcopy Create free account
hub / github.com/beefytech/Beef / BfpFile_Delete

Function BfpFile_Delete

BeefySysLib/platform/win/Platform.cpp:3437–3455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3435}
3436
3437BFP_EXPORT void BFP_CALLTYPE BfpFile_Delete(const char* path, BfpFileResult* outResult)
3438{
3439 if (!::DeleteFileW(UTF8Decode(path).c_str()))
3440 {
3441 int lastError = GetLastError();
3442 switch (lastError)
3443 {
3444 case ERROR_FILE_NOT_FOUND:
3445 case ERROR_PATH_NOT_FOUND:
3446 OUTRESULT(BfpFileResult_NotFound);
3447 break;
3448 default:
3449 OUTRESULT(BfpFileResult_UnknownError);
3450 break;
3451 }
3452 }
3453 else
3454 OUTRESULT(BfpFileResult_Ok);
3455}
3456
3457BFP_EXPORT bool BFP_CALLTYPE BfpFile_Exists(const char* path)
3458{

Callers 6

BfpSpawn_ReleaseFunction · 0.70
DoTransferMethod · 0.50
NetManager.cppFile · 0.50
ClearBuildCacheMethod · 0.50
ExecuteMethod · 0.50

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected