# Avoid changing entry's kind from Dir to PendingDir in refresh_entry · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3ae16904b403dfc6e276491c585d9eb49bb2067e)

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

Visibility: public

Requested revision: 3ae16904b403dfc6e276491c585d9eb49bb2067e

Requested commit: 3ae16904b403dfc6e276491c585d9eb49bb2067e

Commit: 3ae16904b403dfc6e276491c585d9eb49bb2067e

Tree: 95a80d8888f700c516888e60fb6ca7c61b62f276

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Avoid changing entry's kind from Dir to PendingDir in refresh_entry

When lots of filesystem changes are occurring, the filesystem event
for the directory creation may be delivered before the call to
fs::metadata resolves.
```

## Parents

- [d4bbf216501555d78ad184c4de61846f23878b29](https://git.cafe/gitcafe/zed/commit/d4bbf216501555d78ad184c4de61846f23878b29?format=markdown)

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