filesystem: use std for DeleteFile
Remove custom platform implementation of `DeleteFile` and replace single use with `std::filesystem::remove` after a negative `std::filesystem::is_directory` check.
This commit is contained in:
committed by
Rick Gibbed
parent
df65de231f
commit
fc5153bca1
@@ -59,10 +59,6 @@ int64_t Tell(FILE* file);
|
||||
// undefined.
|
||||
bool TruncateStdioFile(FILE* file, uint64_t length);
|
||||
|
||||
// Deletes the file at the given path.
|
||||
// Returns true if the file was found and removed.
|
||||
bool DeleteFile(const std::filesystem::path& path);
|
||||
|
||||
struct FileAccess {
|
||||
// Implies kFileReadData.
|
||||
static const uint32_t kGenericRead = 0x80000000;
|
||||
|
||||
Reference in New Issue
Block a user