filesystem: use std for IsFolder

Remove custom platform implementation of IsFolder and replace
single use with `std::filesystem::is_directory`.
This commit is contained in:
Sandy Carter
2020-04-09 09:52:57 -04:00
committed by Rick Gibbed
parent 05a62673f7
commit a9fa38c88b
4 changed files with 1 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ StfsContainerDevice::~StfsContainerDevice() = default;
bool StfsContainerDevice::Initialize() {
// Resolve a valid STFS file if a directory is given.
if (filesystem::IsFolder(host_path_) && !ResolveFromFolder(host_path_)) {
if (std::filesystem::is_directory(host_path_) && !ResolveFromFolder(host_path_)) {
XELOGE("Could not resolve an STFS container given path {}",
xe::path_to_utf8(host_path_));
return false;