Browse Source

branch_tier.cpp

toml4
Antonio SJ Musumeci 11 months ago
parent
commit
fa1d57cdf3
  1. 2
      config.toml
  2. 1
      src/branch_tier.cpp

2
config.toml

@ -100,7 +100,7 @@ path = '/mnt/branch1'
mode = 'RW'
[[branches.tier.branch]]
active = true
path = '/mnt/disk*'
path = '/mnt/*'
type = 'glob'
mode = 'RW'
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?

1
src/branch_tier.cpp

@ -26,6 +26,7 @@ namespace l
pattern = v_.at("path").as_string();
fs::glob(pattern,&paths);
auto table = v_;
for(auto &path : paths)
fmt::print("path: {}\n",path);
}

Loading…
Cancel
Save