Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, it is (relatively, [1]) trivial. However, even though it is the shell default (Finder, Windows Explorer, whatever Linux file manager), it is not the operating system default. If you call unlink or DeleteFile or use a utility that does (like rm), the file isn’t going to trash.

[1]: https://github.com/arsenetar/send2trash (random find, not mine)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: