MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / deleteFile

Function deleteFile

src/Engine/CrossPlatform.cpp:644–651  ·  view source on GitHub ↗

* Removes a file from the specified path. * @param path Full path to file. * @return True if the operation succeeded, False otherwise. */

Source from the content-addressed store, hash-verified

642 * @return True if the operation succeeded, False otherwise.
643 */
644bool deleteFile(const std::string &path)
645{
646#ifdef _WIN32
647 return (DeleteFileA(path.c_str()) != 0);
648#else
649 return (remove(path.c_str()) == 0);
650#endif
651}
652
653/**
654 * Gets the base filename of a path.

Callers 3

btnYesClickMethod · 0.85
DefeatStateMethod · 0.85
VictoryStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected