mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-04-24 22:14:05 +08:00
fs_find_mount_point.cpp
This commit is contained in:
parent
c595026b30
commit
800bc861c2
@ -8,8 +8,12 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
|
||||
int rv;
|
||||
struct stat initial_st;
|
||||
struct stat tmp_st;
|
||||
std::error_code ec;
|
||||
ghc::filesystem::path can_path;
|
||||
ghc::filesystem::path tmp_path;
|
||||
|
||||
can_path = ghc::filesystem::weakly_canonical(path_,ec);
|
||||
|
||||
rv = fs::lstat(path_,&initial_st);
|
||||
if(rv == -1)
|
||||
return {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user