# std.fs.Dir: fix updateFile\(\) to flush the file before updating its times · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/98585af51d2611584d329ab4defe444a44b8f35e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 98585af51d2611584d329ab4defe444a44b8f35e

Requested commit: 98585af51d2611584d329ab4defe444a44b8f35e

Commit: 98585af51d2611584d329ab4defe444a44b8f35e

Tree: 89092603796ad4e12ef6c1be5d57bfd036a60c34

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.fs.Dir: fix updateFile() to flush the file before updating its times

AtomicFile.finish() calls flush() which renders any previous updateTimes() calls
useless. Regression introduced in f2a3ac7c0534a74ee544fdf6ef9d2176a8d62389.

Closes #24927.

```

## Parents

- [38ef3f899789839240437eced83f2d708b55b693](https://git.cafe/gitcafe/zig/commit/38ef3f899789839240437eced83f2d708b55b693?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/98585af51d2611584d329ab4defe444a44b8f35e?format=markdown)
