SpiecsEngine
 
Loading...
Searching...
No Matches

◆ FileLibrary_Delete()

bool Spices::FileLibrary::FileLibrary_Delete ( const char * filePath)
static

Delete a file from disk.

Parameters
[in]filePathThe file.
Returns
Returns true if delete succeed.

Definition at line 243 of file FileLibrary.cpp.

244 {
246
247 if (FileLibrary_Exists(filePath))
248 {
249 if (remove(filePath) != 0)
250 {
251 std::stringstream ss;
252 ss << "File path: " << filePath << " delete failed.";
253
254 SPICES_CORE_WARN(ss.str())
255 return false;
256 }
257 }
258
259 return true;
260 }
#define SPICES_PROFILE_ZONE
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.

References FileLibrary_Exists().

Referenced by SpicesTest::TEST(), SpicesTest::TEST(), SpicesTest::TEST(), and SpicesTest::TEST().