mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-28 19:06:39 -05:00
mfm_dup.cpp
This commit is contained in:
parent
23bd3ba020
commit
6d725a7743
1 changed files with 7 additions and 4 deletions
|
|
@ -1,8 +1,12 @@
|
|||
#include "mfm_options.hpp"
|
||||
|
||||
#include "str.hpp"
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
|
|
@ -25,10 +29,9 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
for(const fs::directory_entry &de :
|
||||
fs::recursive_directory_iterator(opts_.path,dir_opts))
|
||||
{
|
||||
if(!de.is_directory())
|
||||
continue;
|
||||
if(str::startswith(
|
||||
|
||||
|
||||
std::error_code ec;
|
||||
auto filepath = de.path() / ".dup_2";
|
||||
if(!fs::exists(filepath,ec))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue