Browse Source

branch_tier.cpp

toml4
Antonio SJ Musumeci 10 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' mode = 'RW'
[[branches.tier.branch]] [[branches.tier.branch]]
active = true active = true
path = '/mnt/disk*'
path = '/mnt/*'
type = 'glob' type = 'glob'
mode = 'RW' mode = 'RW'
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ? if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?

1
src/branch_tier.cpp

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

Loading…
Cancel
Save