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
f529b8a709
commit
3b3d2b24a9
1 changed files with 3 additions and 3 deletions
|
|
@ -23,12 +23,12 @@ mfm::dup(const Opts::Dup &opts_)
|
|||
// TODO: expand if mergerfs mount
|
||||
srcpaths = opts_.paths;
|
||||
|
||||
for(const auto &path : srcpaths)
|
||||
for(const auto &srcpath : srcpaths)
|
||||
{
|
||||
if(fs::is_regular_file(path))
|
||||
if(fs::is_regular_file(srcpath))
|
||||
{
|
||||
}
|
||||
else if(fs::is_directory(path))
|
||||
else if(fs::is_directory(srcpath))
|
||||
{
|
||||
auto dir_opts = (fs::directory_options::follow_directory_symlink |
|
||||
fs::directory_options::skip_permission_denied);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue