# fs.Dir.deleteTree: Fix DirNotEmpty condition · gitcafe/zig

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

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

Visibility: public

Requested revision: ce3fe72d9a5e380ad3e25018e562abebc5ee24a6

Requested commit: ce3fe72d9a5e380ad3e25018e562abebc5ee24a6

Commit: ce3fe72d9a5e380ad3e25018e562abebc5ee24a6

Tree: b26a3e2d59761ec691364db1634fc2d6f410e664

Author: xEgoist

Committer: Veikka Tuominen

## Message

```
fs.Dir.deleteTree: Fix DirNotEmpty condition

`deleteTree` needs to retry once the directory is reported to be not
empty. Otherwise, the retry condition is never reached.

```

## Parents

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

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