MCPcopy Create free account
hub / github.com/crownengine/crown / notify_add_file

Function notify_add_file

src/resource/data_compiler.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78static volatile bool _quit = false;
79
80static void notify_add_file(const char *path, Stat &st)
81{
82 TempAllocator512 ta;
83 StringStream ss(ta);
84 ss << "{\"type\":\"add_file\"";
85 ss << ",\"path\":\"" << path << "\"";
86 ss << ",\"size\":\"" << st.size << "\"";
87 ss << ",\"mtime\":\"" << st.mtime << "\"";
88 ss << "}";
89 console_server()->broadcast(string_stream::c_str(ss));
90}
91
92static void notify_remove_file(const char *path)
93{

Callers 2

scan_directoryMethod · 0.85
add_fileMethod · 0.85

Calls 2

console_serverFunction · 0.85
broadcastMethod · 0.80

Tested by

no test coverage detected