# Moved the check for formatting a directory · gitcafe/zig

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

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

Visibility: public

Requested revision: bc0ca73887d12ff71e12ad473bab22631a29b1aa

Requested commit: bc0ca73887d12ff71e12ad473bab22631a29b1aa

Commit: bc0ca73887d12ff71e12ad473bab22631a29b1aa

Tree: f16863c83f28d2a70e4d8bec797dab222b62eaad

Author: DrDeano

Committer: Andrew Kelley

## Message

```
Moved the check for formatting a directory

The original check for a directory was for the `readAllAlloc` so move the check from open to read. This in turn fixes the fmt step in the build script for directories.

```

## Parents

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

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