sindresorhus / trash

Move files and directories to the trash
MIT License
2.57k stars 78 forks source link

"trash" behaving like rm -rf command | MacOS Catalina 10.15.3 #93

Closed Manir991 closed 3 years ago

Manir991 commented 4 years ago

Hi, For some reason the "trash" command is behaving like an rm -rf. The file/ directory gets deleted without populating in the trash. Please let me know if there's anything I am missing.

Screen Shot 2020-02-15 at 5 59 22 PM
sindresorhus commented 4 years ago

Can you try running the binary used here directly? https://github.com/sindresorhus/macos-trash/releases It's just calling the macOS API for moving to trash, so if the problem is correct, it's a macOS bug.