Create .nomedia-file from templater

Hi there,

I’m trying to create a .nomedia-file whenever I’m creating a new type of note. The creation of that note also triggers the creation of a new folder. In that folder I’m placing images and I don’t want them to clutter my Android-devices.

I currently have this:

<%* 
await tp.file.create_new(tp.file.find_tfile("template.nomedia"), "") 
%>

This succesfully creates a nomedia-file, but with a name (in this example it creates “Untitled.nomedia”

How do I get it to create “.nomedia”? So with an ‘empty’ filename?

Thanks a lot for your help!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.