filesystem: use std for DeleteFolder
Remove custom platform implementation of `DeleteFolder` and replace two uses with `std::filesystem::remove_all` which removes a file or directory with all its contents.
This commit is contained in:
committed by
Rick Gibbed
parent
69bcf59c79
commit
df65de231f
@@ -99,7 +99,7 @@ bool HostPathEntry::DeleteEntryInternal(Entry* entry) {
|
||||
auto full_path = host_path_ / xe::to_path(entry->name());
|
||||
if (entry->attributes() & kFileAttributeDirectory) {
|
||||
// Delete entire directory and contents.
|
||||
return xe::filesystem::DeleteFolder(full_path);
|
||||
return std::filesystem::remove_all(full_path);
|
||||
} else {
|
||||
// Delete file.
|
||||
return xe::filesystem::DeleteFile(full_path);
|
||||
|
||||
Reference in New Issue
Block a user