mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-30 12:33:49 +08:00
branches2.cpp
This commit is contained in:
parent
2990ea3dd3
commit
b22991b878
|
@ -23,7 +23,19 @@ int
|
|||
Branches2::clonepath(ghc::filesystem::path basepath_,
|
||||
ghc::filesystem::path relpath_)
|
||||
{
|
||||
int rv;
|
||||
|
||||
for(auto const &tier : _branches)
|
||||
{
|
||||
for(auto const &branch : tier)
|
||||
{
|
||||
if(branch.path == basepath_)
|
||||
continue;
|
||||
rv = fs::clonepath(branch.path,basepath_,relpath_);
|
||||
if(rv == 0)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user