# Extract logic for directory packages · gitcafe/zig

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

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

Visibility: public

Requested revision: e07e182fc1ef34a894e81fd360b47646c7c1a023

Requested commit: e07e182fc1ef34a894e81fd360b47646c7c1a023

Commit: e07e182fc1ef34a894e81fd360b47646c7c1a023

Tree: f211d8e037e448d5111a9e94d2a256e51d3529a6

Author: Adam Goertz

Committer: Andrew Kelley

## Message

```
Extract logic for directory packages

In addition to improving readability, this also fixes a subtle bug
where the Progress node could display the wrong total number of packages to fetch.

```

## Parents

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

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