I am currently developing a plugin to synchronize books between Obsidian and a website.
There is one issue that I’m having trouble with, so I’m asking for help.
When renaming a folder in File Explorer or moving a file to another folder via drag-and-drop, the “rename” event is triggered in both cases. However, it’s difficult to distinguish between the two actions with just the “rename” event. Is there an event that can help differentiate between renaming a folder and moving a file through drag-and-drop?
However, even so, when writing event-handling code, it seems challenging to determine whether the rename event was triggered by a drag-and-drop action or by renaming a folder. What do you think?