Obsidian allows the creation of invalid folders in Windows

Steps to reproduce

! DO NOT DO THIS UNLESS YOU WANT TO DEAL WITH THE CONCEQUENCES !

  1. In the Obsidian File Explorer, press New Folder
  2. Name the folder ..., hit return to apply

Expected result

The folder should not be created/renamed, as ... is an invalid folder name in Windows.

Actual result

The folder is created with the name ..., and promptly disappears from the Obsidian File Explorer. In Windows, ... points to the folder that contains ..., which has some nasty consequences:

  • It’s really hard (impossible?) to delete/rename the ... folder via Windows
  • Git detects all files in ...'s parent folder as new files, because they now have a unique path via ...

Environment

  • Operating system: Windows 10
  • Debug info: N/A

Additional information

I managed to delete the ... folder via Windows Subsystem for Linux (WSL), simply using rmdir. Note that Windows-equivalent commands did not manage to delete the folder.

Thanks.

Yikes! That sounds like a nasty bug. Not that I’d name a folder that myself, but it’s good to know explicitly NOT to do that.

will be fixed in 0.14.0

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.