Browse Source

branch_tier.cpp

toml4
Antonio SJ Musumeci 10 months ago
parent
commit
b1d725032e
  1. 3
      config.toml
  2. 13
      src/branch_tier.cpp

3
config.toml

@ -107,9 +107,10 @@ mode = 'RW'
[[branches.tier.branch]]
enabled = true
name = 'branch1'
type = 'scan'
type = 'literal'
path = '/mnt/branch1'
mode = 'RW'
exclude = ['*.png']
[[branches.tier.branch]]
enabled = true
path = '/mnt/*'

13
src/branch_tier.cpp

@ -75,16 +75,3 @@ BranchTier::BranchTier(toml::value const &v_)
l::load_branch_scan(table,_branches);
}
}
void
BranchTier::copy_enabled_rw(BranchTier &bt_) const
{
for(auto const &b : _branches)
{
if(b.enabled == false)
continue;
if(b.mode != +Branch2::Mode::RW)
continue;
bt_._branches.emplace_back(b);
}
}
Loading…
Cancel
Save