Is there any way to derive the vault id from the vault directory?

Is there any way to derive the vault id from the vault directory?

I need the vault id so I can find the Obsidian cache of a given vault directory.

it can be found in %appdata%/obsidian/obsidian.json

it’s "id": {path, ts}

2 Likes

Great move to do this BTW.
Creates a lot less updates for cloud based notes.
KUDOS!

1 Like

Thank you!

1 Like

Hi,

is there a way to access the vault id via the API without a need to read the JSON file? Thank you! :slightly_smiling_face:

Is there still no way to get the vault id via the API in Jan 2024?

I guess app.appId is the vault ID.

1 Like

@ush Hmm. Seems like you’re right! Thanks