mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 23:15:43 +01:00
739 B
739 B
title | date | draft | emoji | summary | tags | ||||
---|---|---|---|---|---|---|---|---|---|
Trash files in Ruby | 2009-03-25T22:42:00+00:00 | false | 🗑️ | A Ruby gem I wrote that sends files to Operating System specific Trash/Recycle bins. |
|
I’ve written a ruby File
class extension - File.trash( filename )
- which allows you to send files to the Trash or Recycle bin (depending on your OS).
Mac support is ready, Windows support is touch-and-go (read the wiki for more info) and its been so long since I used Linux (ahh, the Arch days) I can’t remember how the bins work over there. Anyone want to help?