Same file name and folder name causes the file to disappear

I can’t have a file inside a folder with the same name as the folder name. The file becomes hidden. Instead, when you click on the Folder the file opens up in the editor. I tried changing the name of the file when it opened in the editor. File name changes and so does the Folder name. Causing the issue to persist. The only way to see the file again in Obsidian is to open the folder using file manager outside obsidian but doing so breaks the internal links in obsidian.

Steps to reproduce

  • Create a folder named ‘XYZ’
  • Create a file named ‘’ in parent directory
  • Move the file ‘’ into folder ‘XYZ’
  • Click on the folder name twice in the file navigator

Expected result

  • Clicking on the folder should displaythe files

Actual result

  • clicking on the folder opens the file named XYZ in editor instead of diplaying it in the file navigation bar.


  • Operating system: Windows 10

  • Obsidian version: 0.15.6

  • Using custom CSS: Yes

Additional information

Please resubmit this bug report and make sure that: 1) you follow the bug report template, 2) you use the default theme (no css) and 3) there are no third-party plugins enabled (You can use the sandbox vault for 2 and 3).