Repository: stable-diffusion-webui
Issue: [Bug]: The nsfw content is not hidden
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Using "." to hide nsfw content does not work if the folders are named ".sd 1.5" and "sd 1.5" for example. The content of the ".sd 1.5" folder is shown when you select the "sd 1.5" folder and thus the nsfw content is not hidden.

### Steps to reproduce the problem

1. In the "stable-diffusion-webui\models\Stable-diffusion" folder, create two folders ".sd 1.5" and "sd 1.5". 
2. Select the "sd 1.5" folder
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/8284477/32eab171-d885-4bb5-80a6-5c6d0a348aa0)
3. However, if you select the ".sd 1.5" folder with safe content, it will still display the contents of the ".sd 1.5" folder with unsafe content!!!

### What should have happened?

The contents of the ".sd 1.5" folder with insecure content should not be displayed unless I explicitly select it.

### Commit where the problem happens

Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
set COMMANDLINE_ARGS= --xformers --autolaunch
```


### List of extensions

sd-webui-controlnet
sd-webui-additional-networks

### Console logs

```Shell
venv "H:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Installing requirements






Launching Web UI with arguments: --xformers --autolaunch
[-] ADetailer initialized. version: 23.5.18, num models: 7
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
ControlNet v1.1.191
ControlNet v1.1.191
Loading weights [6636747db6] from H:\stable-diffusion-webui\models\Stable-diffusion\SD 1.5 inpainting\dungeonsNWaifusNew_dungeonsNWaifus22.inpainting.safetensors
Create LRU cache (max_size=16) for preprocessor results.
Create LRU cache (max_size=16) for preprocessor results.
[AddNet] Updating model hashes...
100%|████████████████████████████████████████████████████████████████████████████████| 76/76 [00:00<00:00, 4863.93it/s]
Creating model from config: H:\stable-diffusion-webui\configs\v1-inpainting-inference.yaml
LatentInpaintDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.54 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(4): Style-Autumn, Style-Autumn-neg, Style-Petal, Style-Petal-neg
Textual inversion embeddings skipped(3): nartfixer, nfixer, nrealfixer
Model loaded in 50.3s (load weights from disk: 1.5s, create model: 1.9s, apply weights to model: 32.0s, apply half(): 9.2s, move model to device: 1.3s, hijack: 0.2s, load textual inversion embeddings: 4.0s).
Loading weights [6636747db6] from H:\stable-diffusion-webui\models\Stable-diffusion\SD 1.5 inpainting\dungeonsNWaifusNew_dungeonsNWaifus22.inpainting.safetensors
Creating model from config: H:\stable-diffusion-webui\configs\v1-inpainting-inference.yaml
LatentInpaintDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.54 M params.
Applying xformers cross attention optimization.
Model loaded in 46.4s (load weights from disk: 0.5s, create model: 2.0s, apply weights to model: 30.2s, apply half(): 11.4s, load VAE: 0.1s, move model to device: 1.4s, hijack: 0.2s, load textual inversion embeddings: 0.4s, scripts callbacks: 0.2s).
[AddNet] Updating model hashes...
100%|████████████████████████████████████████████████████████████████████████████████| 76/76 [00:00<00:00, 3622.23it/s]
Running on local URL:  http://127.0.0.1:7860
```


### Additional information

_No response_