File and links Settings: Add Sanitization checks - Cant use '.attachments' as attachment folder name

Steps to reproduce

  • change attachment folder name to .attachments
  • pull an image onto a vault page

Did you follow the troubleshooting guide? [Y/N]

yes, no plugins are installed at all, Vault was newly created

Expected result

  • the file was copied to the attachement folder
  • the picture as embedded in the vault page.

Actual result

  • the file was neither copied nor embedsed

Environment

SYSTEM INFO:
Obsidian version: v1.9.7
Installer version: v1.8.4
Operating system: Windows 11 Enterprise 10.0.26100
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

I totally get the "exclude hidden dirs (also dot-dirs on Windows) from the vault but I would expect that an explicitely stated attachment directory is included in the vault directories indepeently from default behavior.

On mobile at the moment, but these FRs bubbled up in a quick search:

There may be more.

This for sure the same class of problem and there is quiet some “noise” around the general handling of ‘hidden’ directories and files in the forums.

I filed this as a bug because the ‘.attachments’ is accepted without complaining but it doesn’t work. It requires further investigation to learn that dot-directories, which are obviously NOT hidden directories on windows, arn’t processed.

I would expect that if I state a directory explictely it is either rejected as invalid or used.