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
@@ -102,7 +102,8 @@ bool HostPathEntry::DeleteEntryInternal(Entry* entry) {
|
||||
return std::filesystem::remove_all(full_path);
|
||||
} else {
|
||||
// Delete file.
|
||||
return xe::filesystem::DeleteFile(full_path);
|
||||
return !std::filesystem::is_directory(full_path) &&
|
||||
std::filesystem::remove(full_path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user