Comments (9)
Blocked by sindresorhus/trash#24 (Which is a long standing macOS bug...)
from trash-cli.
@sindresorhus What a pity..
from trash-cli.
@sindresorhus Can we store the original file's directory and just mv ~/.Trash/<lastFile> <lastDirectory>
? I tried and it looks totally feasible.
from trash-cli.
No, macOS renames duplicates in the trash, so original filenames are not guaranteed. The only workaround, as discussed in the original issue, is to parse the undocumented .DS_Store
file, but that's not something I have time or interest in doing.
from trash-cli.
@sindresorhus We can rename duplicates manually before putting to trash.
from trash-cli.
That's a slippery slope. And our mapping will easily get out of sync when the user trashes and restores in Finder, which we can't know about.
from trash-cli.
@sindresorhus But this wouldn't be a huge problem? We can rename with timestamp and rand id each time before moving to Trash, if the user restores in Finder, then it's handled by the user, he or she will know what he or she is doing since he is already using the command line. And if we cannot find the renamed file in Trash, we can print some message to show what happened.
from trash-cli.
Yes, I guess that would work, but it's not something I would be interested in maintaining.
from trash-cli.
@sindresorhus Fair enough.
from trash-cli.
Related Issues (20)
- Restoring issue HOT 2
- Feature: Compile trash-cli into native binaries HOT 2
- "Put Back" not Available for Deleted Files in macOS Finder HOT 1
- --dot not supported? HOT 2
- .Trash directory
- abilty to glob paths which skip the trash and are deleted immediately
- File deleted but not in Recycle Bin HOT 6
- No put back option in the Trash HOT 1
- Hard-deletes on macOS Mojave HOT 1
- Error from Update Notifier module HOT 1
- `sudo trash` still has no permission HOT 6
- No such file or directory message
- Can't trash folders with content HOT 1
- High vulnerability in dependency
- project name causes confusion with the original trash-cli project (in Python) HOT 1
- ImportError: No module named trashcli.put HOT 2
- v5 throws ERR_UNSUPPORTED_ESM_URL_SCHEME error
- Add example unicorn.png HOT 1
- windows-trash.exe does not work with subst virtual drive paths
- Npm warning during install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trash-cli.