mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-05-03 02:14:04 +08:00
fs_find_mount_point.cpp
This commit is contained in:
parent
5aea54ef1f
commit
b9b6d2aafa
@ -23,10 +23,12 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
|
|||||||
ghc::filesystem::path tmp_path;
|
ghc::filesystem::path tmp_path;
|
||||||
|
|
||||||
can_path = ghc::filesystem::weakly_canonical(path_,ec);
|
can_path = ghc::filesystem::weakly_canonical(path_,ec);
|
||||||
|
fmt::print("{}\n",can_path);
|
||||||
if(ec)
|
if(ec)
|
||||||
can_path = ghc::filesystem::absolute(path_,ec);
|
can_path = ghc::filesystem::absolute(path_,ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
return nonstd::make_unexpected(ec);
|
return nonstd::make_unexpected(ec);
|
||||||
|
fmt::print("{}\n",can_path);
|
||||||
|
|
||||||
rv = fs::lstat(can_path,&initial_st);
|
rv = fs::lstat(can_path,&initial_st);
|
||||||
if(rv == -1)
|
if(rv == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user