| 137 | } |
| 138 | |
| 139 | void 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 | |
| 150 | bool TruncateFile(FILE* file, unsigned int length) |
| 151 | { |