Fix xe::CreateParentFolder improperly handling separators on Windows

This commit is contained in:
Dr. Chat 2017-01-14 15:19:43 -06:00
parent bb9369b128
commit 06588f8703
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ std::string CanonicalizePath(const std::string& original_path) {
} }
bool CreateParentFolder(const std::wstring& path) { bool CreateParentFolder(const std::wstring& path) {
auto fixed_path = xe::fix_path_separators(path, '/'); auto fixed_path = xe::fix_path_separators(path, xe::kWPathSeparator);
auto base_path = xe::find_base_path(fixed_path, '/'); auto base_path = xe::find_base_path(fixed_path, xe::kWPathSeparator);
if (!PathExists(base_path)) { if (!PathExists(base_path)) {
return CreateFolder(base_path); return CreateFolder(base_path);
} else { } else {