mikekazakov / nimble-commander

Nimble Commander - dual-pane file manager for Mac
https://magnumbytes.com/
GNU General Public License v3.0
309 stars 31 forks source link

[Bug]: Can't delete files or folders inside OneDrive folder #299

Open zouyangdev opened 3 months ago

zouyangdev commented 3 months ago

Confirmation

Version of Nimble Commander

v1.6.0 MacOS 13.6.5

Distribution Type

Downloaded from Mac App Store (i.e. sandboxed)

Expected Result

Delete a file or folder inside OneDrive folder, really delete it.

Actual Result

After deleting ~/OneDrive/some/folder/myfile.txt, the file is moved to ~/OneDrive/myfile.txt.

Steps to reproduce

Steps:

  1. Focus a file or folder inside OneDrive folder, e.g. ~/OneDrive/some/folder/myfile.txt
  2. Delete it with ⌘Backspace or F8, the file will be automatically moved to ~/OneDrive/myfile.txt
  3. Delete the file ~/OneDrive/myfile.txt again, it will be moved to ~/OneDrive/myfile 2.txt
  4. Delete again, it will be moved to ~/OneDrive/myfile 3.txt
  5. etc
Snipaste_2024-06-13_11-21-05 Snipaste_2024-06-13_10-27-41

Additional Information

No response

mikekazakov commented 3 months ago

Hi, a couple of questions:

zouyangdev commented 3 months ago

What is non-sandboxed version? Is it the version from the website? I'll have a try. Using iTerm, there is no problem with the deletion. The file is really deleted. Using Finder, there is no problem too, the file is deleted to the Trash. Btw, the App Store version, when I use ⇧F8, the file can be deleted. But it is permanently deleted, none in the Trash.

zouyangdev commented 3 months ago

I have tested the website version, the same issue still exists.

mikekazakov commented 3 months ago

So then the issue is about moving to trash, not about deletion, right?

zouyangdev commented 3 months ago

No, it didn't move to trash with F8 or Cmd-Backspace, it just moved to ~/OneDrive. ⇧F8 is not a solution because it is not the operation habit in Nimble Commander, since deleting other files outside OneDrive is OK. But this is not a serious problem as I can operate in Finder.

mikekazakov commented 3 months ago

Another question - is the Full Disk Access enabled in your case and if not - does it affect the issue?

zouyangdev commented 3 months ago

The app store version, Full Disk Access is not enabled, Folder access of OneDrive is granted. I removed the app store version, and installed website version, this time Full Disk Access in enabled. The issue is still the same.

zouyangdev commented 3 months ago

UPDATE: I tested in another Mac machine, MacOS Sonoma 14.5, Nimble Commander from App Store, Folder access of OneDrive granted. This time deletion inside OneDrive is OK, except a little difference to Finder. The file is permanently deleted using F8 or Cmd-Backspace. As in Finder, the deletion is to Trash with Cmd-Backspace. In both machine, OneDrive is the latest version. If searching for OneDrive issues takes too much time, just leave it.