|
|
|
@ -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; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|