# fs.Dir.deleteTree: Fix some handling of NotDir error in deleteFile calls · gitcafe/zig

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

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

Visibility: public

Requested revision: db0829c15ab883b9efe704414fcf8149a3d83026

Requested commit: db0829c15ab883b9efe704414fcf8149a3d83026

Commit: db0829c15ab883b9efe704414fcf8149a3d83026

Tree: 0933f12d006d7f7cd5f7e36e52347d783d21fa6f

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
fs.Dir.deleteTree: Fix some handling of NotDir error in deleteFile calls

We don't control sub_path so it may contain directory components; therefore, NotDir is a potential error when acting on sub_path.

```

## Parents

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

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