mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
mfm_dup.cpp
This commit is contained in:
parent
3b3d2b24a9
commit
755962b865
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
fs::directory_options::skip_permission_denied);
|
||||
|
||||
for(const fs::directory_entry &de :
|
||||
fs::recursive_directory_iterator(path,dir_opts))
|
||||
fs::recursive_directory_iterator(srcpath,dir_opts))
|
||||
{
|
||||
if(!str::startswith(de.path().filename().string(),".dup_"))
|
||||
continue;
|
||||
|
|
@ -42,7 +42,7 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
for(const auto &de :
|
||||
fs::directory_iterator(de.path().parent_path()))
|
||||
{
|
||||
auto relpath = fs::relative(de.path(),path);
|
||||
auto relpath = fs::relative(de.path(),srcpath);
|
||||
fmt::println("{} {}",
|
||||
relpath.string(),
|
||||
de.path().filename().string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue