Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete file in DC can't be restore original path #1645

Open
Liuzhj opened this issue May 14, 2024 · 4 comments
Open

delete file in DC can't be restore original path #1645

Liuzhj opened this issue May 14, 2024 · 4 comments
Labels
bug Something isn't working macOS macOS specific issue

Comments

@Liuzhj
Copy link

Liuzhj commented May 14, 2024

Version

Double Commander
Version: 1.1.11 beta
Revision: 410
Commit: f1b4496
Build date: 2024/03/10
Lazarus: 3.99.0.0
FPC: 3.2.2
Platform: aarch64-Darwin-cocoa
OS version: Mac OS X 14.4.1

Description

image image
@Liuzhj Liuzhj added the bug Something isn't working label May 14, 2024
@alexx2000
Copy link
Contributor

alexx2000 commented May 19, 2024

@Liuzhj do you mean restore from recycle bin? As I remember it is a bug in the trashItemAtURL function.

@Liuzhj
Copy link
Author

Liuzhj commented May 20, 2024

trashItemAtURL

I mean just put back from recycle bin on MACOS.

@lprot
Copy link

lprot commented May 20, 2024

@alexx2000 the reason here is trashItemAtURL does not update $HOME/.Trash/.DS_Store
This is a bug Apple does not care about and will never fix.

I tried Commander ONE and Forklift 4 and they use trashItemAtURL too.

The only possibility to have a deletion with "Put back" feature in Trash is to delete via Finder. Can be done with https://github.com/ali-rantakari/trash

Would be nice to have it in DC by default and add an option "Delete via trashItemAtURL without 'Put Back' feature in Trash)"?

References Byron/trash-rs#24 and sindresorhus/macos-trash#4

@alexx2000 alexx2000 added the macOS macOS specific issue label May 20, 2024
@alexx2000
Copy link
Contributor

Yes, that's exactly what I was talking about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS macOS specific issue
Projects
None yet
Development

No branches or pull requests

3 participants