fs_find_mount_point.cpp

This commit is contained in:
Antonio SJ Musumeci 2025-04-16 12:22:33 -05:00
parent f0d4d26ea5
commit 47988f4357

View File

@ -22,8 +22,10 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
ghc::filesystem::path can_path;
ghc::filesystem::path tmp_path;
printf("%s\n",ghc::filesystem::weakly_canonical(path_).string().c_str());
printf("%s\n",ghc::filesystem::absolute(path_).string().c_str());
can_path = ghc::filesystem::weakly_canonical(path_,ec);
printf("%s\n",can_path.string().c_str());
if(ec)
can_path = ghc::filesystem::absolute(path_,ec);
if(ec)