Browse Source

fs_find_mount_point.cpp

inodecalc
Antonio SJ Musumeci 3 weeks ago
parent
commit
9ad90c8ad9
  1. 4
      src/fs_find_mount_point.cpp

4
src/fs_find_mount_point.cpp

@ -23,12 +23,12 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
ghc::filesystem::path tmp_path;
can_path = ghc::filesystem::weakly_canonical(path_,ec);
fmt::print("{}\n",can_path);
printf("%s\n",can_path.string().c_str());
if(ec)
can_path = ghc::filesystem::absolute(path_,ec);
if(ec)
return nonstd::make_unexpected(ec);
fmt::print("{}\n",can_path);
printf("%s\n",can_path.string().c_str());
rv = fs::lstat(can_path,&initial_st);
if(rv == -1)

Loading…
Cancel
Save