mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
22 lines
394 B
C++
22 lines
394 B
C++
#include "branch2.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
Branch2::Branch2()
|
|
: mode(Mode::RW)
|
|
{
|
|
|
|
}
|
|
|
|
Branch2::Branch2(toml::value const &v_)
|
|
: mode(Mode::RW)
|
|
{
|
|
std::cout << v_ << '\n';
|
|
|
|
enabled = v_.at("enabled").as_boolean();
|
|
mode = Mode::_from_string(toml::find<std::string>(v_,"mode").c_str());
|
|
min_free_space = 0;
|
|
path = toml::find<std::string>(v_,"path");
|
|
|
|
}
|