Delete file pops up message that "Destination file already exists!"

Steps to reproduce

  1. Create a new file in a new pane (e.g. Ctrl-N from pinned pane, or Ctrl-Shift-N from any)
  2. Delete the file while the cursor is still in the filename area, using Ctrl-P “delfile” or clicking in the pane’s menu

Expected result

File is deleted

Actual result

File is deleted, but an orange popup is displayed, saying “Destination file already exists!”

Environment

  • Operating system: Windows
  • Obsidian version: 0.10.6

Additional information

Behavior did not occur in 0.10.1

I’ve just hit the same issue with Linux on v0.ll.5.

Currently I have my “Delete files” setting set to “Move to system trash”, which may be relevant.

It had been working, but I’ve just stated getting the message and the files no longer go into the system trash.

I had this yesterday too, on 0.11.13 (am on 0.12.0 now). Also using the “move to system trash” setting.

I thought it was because I had a lot of “Untitled.md” in my Trash (and Untitled 1, Untitled 2, etc)

Didn’t spend too long trying to reproduce it though.

Got this yesterday when a plugin accidentally created the file Test|Charlie Brown (it should have been linking to Test instead).

So I tried to delete Test|Charlie Brown from the file explorer side pane. Obsidian deleted the file but then showed the error.

Linux Mint 20.1/Cinnamon, Obsidian 0.11.13, Installer 0.10.11)