-
I'm fascinated with the idea of automatic filing of notes, and I'd love to create a new sub-folder if it doesn't exist (representing a project or issue where I'll file notes related to that). Is creating a sub-folder something that is possible to do using Templater? If so, how would you check first if the folder exists in your code? Or am I totally wrong and does Templater do that automatically when you move a file to a path that doesn't exist? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I am a +1 for this. I love the move function and am starting to make most of my notes 'automatically file'... when the destination directory exists. I was thinking about creating a function that would run |
Beta Was this translation helpful? Give feedback.
-
Hey guys, If you need to create a new folder, why not try the You can check if path exists. If it doesn't, do:
Hope that helps, Welp~ Edit: something o.o |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hey guys,
If you need to create a new folder, why not try the
createFolder()
function in the Obsidian Api? (It is referenced on line 1004)You can check if path exists. If it doesn't, do:
Hope that helps,
Welp~
Edit: something o.o