MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / set_mount_point

Method set_mount_point

dependencies/httplib/httplib.h:4815–4825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4813}
4814
4815inline bool Server::set_mount_point(const std::string &mount_point,
4816 const std::string &dir, Headers headers) {
4817 if (detail::is_dir(dir)) {
4818 std::string mnt = !mount_point.empty() ? mount_point : "/";
4819 if (!mnt.empty() && mnt[0] == '/') {
4820 base_dirs_.push_back({mnt, dir, std::move(headers)});
4821 return true;
4822 }
4823 }
4824 return false;
4825}
4826
4827inline bool Server::remove_mount_point(const std::string &mount_point) {
4828 for (auto it = base_dirs_.begin(); it != base_dirs_.end(); ++it) {

Callers

nothing calls this directly

Calls 3

is_dirFunction · 0.85
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected