filesystem: use std for PathExists
Remove custom platform implementation of `PathExists` and replace uses with `std::filesystem::exists`.
This commit is contained in:
committed by
Rick Gibbed
parent
a9fa38c88b
commit
c8e64da4eb
@@ -26,7 +26,7 @@ HostPathDevice::HostPathDevice(const std::string_view mount_path,
|
||||
HostPathDevice::~HostPathDevice() = default;
|
||||
|
||||
bool HostPathDevice::Initialize() {
|
||||
if (!xe::filesystem::PathExists(host_path_)) {
|
||||
if (!std::filesystem::exists(host_path_)) {
|
||||
if (!read_only_) {
|
||||
// Create the path.
|
||||
xe::filesystem::CreateFolder(host_path_);
|
||||
|
||||
Reference in New Issue
Block a user