MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / is_dir

Function is_dir

examples/server/httplib.h:2097–2100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2095}
2096
2097inline bool is_dir(const std::string &path) {
2098 struct stat st;
2099 return stat(path.c_str(), &st) >= 0 && S_ISDIR(st.st_mode);
2100}
2101
2102inline bool is_valid_path(const std::string &path) {
2103 size_t level = 0;

Callers 1

set_mount_pointMethod · 0.85

Calls 2

statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected