coddingtonbear / obsidian-local-rest-api

Unlock your automation needs by interacting with your notes in Obsidian over a secure REST API.
MIT License
607 stars 56 forks source link

[Bug] GET /vault/{pathToDirectory} doesn't return 404 not found error #22

Closed kaiiiz closed 2 years ago

kaiiiz commented 2 years ago

Consider the following folder structure:

.
├── a
│   └── a.md
└── b

What I get from the server response:

image

What I expected to get from the server response:

It should return 404 (Directory does not exist) instead of 200.

OS: MacOS Monterey 12.2.1 (M1) Obsidian version: 0.14.6 Obsidian local rest API version: 1.3.5

coddingtonbear commented 2 years ago

Fixed in d011f40; thanks for this bug report, too, @kaiiiz !