MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / stat

Class stat

programs/docker-init/docker-init.cpp:309–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307
308 /// Chown only if the owner needs to change (avoids slow recursive chown on already-correct dirs).
309 struct stat st{};
310 if (stat(dir.c_str(), &st) == 0 && (st.st_uid != uid || st.st_gid != gid))
311 recursiveChown(dir, uid, gid);
312

Callers 1

createDirectoryAndChownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected