| 1183 | } |
| 1184 | |
| 1185 | void 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 | |
| 1196 | bool TruncateFile(FILE *file, unsigned int length) { |
| 1197 | #if defined(WIN32) |