Skip to content

Commit

Permalink
Fix Windows std::filesystem::path conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
timoore committed Feb 23, 2024
1 parent f9e2b23 commit ddcb84b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/src/FilesystemUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ std::filesystem::path getCesiumCacheDirectory() {
// Should we create the directory if it doesn't exist? It's hard to believe that Omniverse
// won't have already created it.
}
std::string homeDir = getUserHomeDirectory();
if (!homeDir.empty()) {
std::filesystem::path homeDirPath(homeDir);
auto homeDirPath = getUserHomeDirectory();
if (!homeDirPath.empty()) {
auto cacheDirPath = homeDirPath / ".nvidia-omniverse";
if (exists(cacheDirPath)) {
return cacheDirPath;
Expand Down

0 comments on commit ddcb84b

Please sign in to comment.