MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DirectoryCommit

Function DirectoryCommit

src/util/fs_helpers.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void DirectoryCommit(const fs::path& dirname)
140{
141#ifndef WIN32
142 FILE* file = fsbridge::fopen(dirname, "r");
143 if (file) {
144 fsync(fileno(file));
145 fclose(file);
146 }
147#endif
148}
149
150bool TruncateFile(FILE* file, unsigned int length)
151{

Callers 1

FlushMethod · 0.85

Calls 1

fopenFunction · 0.85

Tested by

no test coverage detected