LostPaul / obsidian-folder-notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
https://lostpaul.github.io/obsidian-folder-notes/
GNU Affero General Public License v3.0
264 stars 11 forks source link

Renaming folder note causes "Destination file already exists" error message to pop up, broken Templater tp.file.rename() #91

Open SirDotJ opened 4 months ago

SirDotJ commented 4 months ago

As title says every time I rename a folder note through the note itself with sync turned on message "Destination file already exists" pops up. But the note and folder are still renamed. Problem is that I think this causes Templater's rename function not to work properly: rename command still goes through and renames the file and folder, but all of the Templater commands get left over and act as if the whole thing failed with an error message.

Relative console output is provided:

Without Templater: Error message Console output

Using template file with tp.file.rename() in it: Used template Failed folder creation attempt Console output