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

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

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

Visibility: public

Requested revision: 77c09d16f9d992b19bc7cb2d2497f8009e0250ba

Requested commit: 77c09d16f9d992b19bc7cb2d2497f8009e0250ba

Commit: 77c09d16f9d992b19bc7cb2d2497f8009e0250ba

Tree: 12c3bcb70dd615ef69a2286c3a83ff9a52022579

Author: Alex Rønne Petersen

Committer: Andrew Kelley

## 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

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

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