520 B
520 B
<% tp.date.now("YYYY-MM-DD") %>
Jan Meyer
664237
const folder = app.vault.getAbstractFileByPath(folderPath); let fileCount = 0;
if (folder && folder.children) { fileCount = folder.children.length; }
const newFileName = Homework ${String(fileCount).padStart(2, '0')};
await tp.file.move(${folderPath}/${newFileName});
%>