[Bug] macOS: Image location can not support folder contains '.', e.g. "./.img/file1.png"

I like to store the image files in the hidden folder (e.g. “.img”) at the same path as the current md file, so that the image folder will not be visible in the file explorer. But it can not work.

Steps to reproduce

  1. In Obsidian → Settings → Files & Links, set “Default location for new attachments” to “Same folder as current file”.

  2. Store one image file “file1.png” in the hidden folder “.img” at the current file’s path.

  3. in the md file, write ![Post image](./.img/file1.png), it can not echo the image. But if I change the folder from “.img” to “_img”, it works.