-
I'll try to find a script to display the last created daily note, even if the last one wasn't written yesterday, but a few days ago.
Unfortunatly it always play out the note from yesterday, even if this doesn't exist. What can I change? |
Beta Was this translation helpful? Give feedback.
Answered by
Zachatoo
Oct 2, 2024
Replies: 1 comment 2 replies
-
I did a second test, to see, if the function works. tp.file.exists(...) always return true, no matter if the file exist.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tp.file.exists
is asynchronous, so you need toawait
it, see examples in docshttps://silentvoid13.github.io/Templater/internal-functions/internal-modules/file-module.html#tpfileexistsfilepath-string