Browse Source

mergerfs_api.cpp

webui
Antonio SJ Musumeci 1 week ago
parent
commit
c4fbe5ab7a
  1. 12
      src/mergerfs_api.cpp

12
src/mergerfs_api.cpp

@ -66,6 +66,18 @@ mergerfs::api::get_kvs(const fs::path &mountpoint_,
return fs::xattr::get(dot_mergerfs_filepath,kvs_);
}
int
mergerfs::api::set_kv(const fs::path &mountpoint_,
const std::string &key_,
const std::string &val_)
{
fs::path dot_mergerfs_filepath;
dot_mergerfs_filepath = mountpoint_ / ".mergerfs";
return fs::xattr::set(dot_mergerfs_filepath,key_,val_,0);
}
int
mergerfs::api::allpaths(const std::string &input_path_,
std::vector<std::string> &output_paths_)

Loading…
Cancel
Save