Open FichteFoll opened 8 years ago
Has there been any progress or planning on this issue? Is there anything we can do to help move it along? Thanks!
similar problems and discussions have also been had here re Linux, which may be relevant: https://github.com/SublimeTextIssues/Core/issues/209
@BenjaminSchaaf Was this fixed by your delete files changes?
@wbond Not sure. Couldn't test macOS so this issue wasn't on my radar at the time.
From @taruti on March 24, 2016 19:50
This might be two issues:
1) Errors on file deletion are not reported in
DeleteFileCommand
, the return value from send2trash is ignored making it hard to see what happens. Handling the errors likeDeleteFolderCommand
does could make sense.2) File deletion on filesystems without a trash folder is not supported.
send2trash
ends up callingFSMoveObjectToTrashSync
from CoreServices. The function returns an errors and does not remove the file on filesystems without a trash can. OSXFuse (3.2.0) sshfs is an example of such a filesystem, but in general this is the case for most fuse filesystems.Finder handles errors from
FSMoveObjectToTrashSync
and then asks the user and deletes the file upon user confirmation. Doing likewise might be a solution.Tested with Sublime Text build 3103.
Copied from original issue: SublimeTextIssues/DefaultPackages#184