MCPcopy Create free account
hub / github.com/ElementsProject/elements / DirectoryCommit

Function DirectoryCommit

src/util/system.cpp:1185–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185void DirectoryCommit(const fs::path &dirname)
1186{
1187#ifndef WIN32
1188 FILE* file = fsbridge::fopen(dirname, "r");
1189 if (file) {
1190 fsync(fileno(file));
1191 fclose(file);
1192 }
1193#endif
1194}
1195
1196bool TruncateFile(FILE *file, unsigned int length) {
1197#if defined(WIN32)

Callers 1

FlushMethod · 0.85

Calls 1

fopenFunction · 0.85

Tested by

no test coverage detected