mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 15:36:31 -05:00
mfm_dup.cpp
This commit is contained in:
parent
6d725a7743
commit
a9126957e6
1 changed files with 6 additions and 1 deletions
|
|
@ -29,8 +29,13 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
for(const fs::directory_entry &de :
|
||||
fs::recursive_directory_iterator(opts_.path,dir_opts))
|
||||
{
|
||||
if(str::startswith(
|
||||
if(!str::startswith(de.path().string(),".dup_"))
|
||||
continue;
|
||||
|
||||
fmt::println("{} {}",
|
||||
opts_.path.string(),
|
||||
de.path().string());
|
||||
continue;
|
||||
|
||||
auto filepath = de.path() / ".dup_2";
|
||||
if(!fs::exists(filepath,ec))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue