# project_panel: Do not allow creating empty file/dir or file/dir with only whitespaces \(\#28240\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ee9109ade5813b96011e6821215ed99688b0176

Requested commit: 7ee9109ade5813b96011e6821215ed99688b0176

Commit: 7ee9109ade5813b96011e6821215ed99688b0176

Tree: 1444a5f1e5f5276d053410fad1e8a82c4f74235a

Author: Smit Barmase

Committer: GitHub

## Message

```
project_panel: Do not allow creating empty file/dir or file/dir with only whitespaces (#28240)

- Do not allow creating empty file or empty directory.
- Do not allow creating file or directory with just whitespace.
- Show error only in case whitespace.

<img width="352" alt="image"
src="https://github.com/user-attachments/assets/f6040332-59a6-4d09-bf07-2b4b1b8b9e03"
/>

Release Notes:

- N/A
```

## Parents

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

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