file_util: Migrate remaining file handling functions over to std::filesystem

Converts creation and deletion functions over to std::filesystem,
simplifying our file-handling code.

Notably with this, CopyDir will now function on Windows.
This commit is contained in:
Lioncash
2022-10-31 19:49:16 +02:00
committed by GPUCode
parent 0675bd946c
commit 9d6aa2db81
5 changed files with 119 additions and 298 deletions

View File

@ -200,7 +200,7 @@ static ResultCode DeleteDirectoryHelper(const Path& path, const std::string& mou
}
ResultCode SaveDataArchive::DeleteDirectory(const Path& path) const {
return DeleteDirectoryHelper(path, mount_point, Common::FS::DeleteDir);
return DeleteDirectoryHelper(path, mount_point, Common::FS::Delete);
}
ResultCode SaveDataArchive::DeleteDirectoryRecursively(const Path& path) const {