{
  "path": "/posts/tumblr-musings/trash-files-in-ruby",
  "site": "at://did:plc:ephkzpinhaqcabtkugtbzrwu/site.standard.publication/3mdogbputbg2m",
  "tags": [
    "ruby",
    "code",
    "github",
    "from-tumblr"
  ],
  "$type": "site.standard.document",
  "title": "Trash files in Ruby",
  "description": "A Ruby gem I wrote that sends files to Operating System specific Trash/Recycle bins.",
  "publishedAt": "2009-03-25T22:42:00.000Z",
  "textContent": "github.com\n\nI’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).\n\nMac 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?",
  "canonicalUrl": "https://www.byjp.me/posts/tumblr-musings/trash-files-in-ruby"
}