mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
mfm_dup.cpp
This commit is contained in:
parent
f455208d16
commit
a5cd0c68b9
1 changed files with 8 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ namespace mfm
|
|||
void
|
||||
mfm::dup(const Opts::Dup &opts_)
|
||||
{
|
||||
std::vector<std::filesystem::path> paths;
|
||||
std::vector<std::filesystem::path> srcpaths;
|
||||
|
||||
// TODO: expand if mergerfs mount
|
||||
paths = opts_.paths;
|
||||
|
|
@ -46,6 +46,13 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
fmt::println("{} {}",
|
||||
relpath.string(),
|
||||
de.path().filename().string());
|
||||
|
||||
for(const auto &dstpath : paths)
|
||||
{
|
||||
if(dstpath == path)
|
||||
continue;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue