www.byjp.me/content/posts/tumblr-musings/trash-files-in-ruby.md
JP Hastings-Spital b8cc9ee66d Remove leading newlines
This standardises all my markdown files to have no leading newline after the `---` that ends the frontmatter.

This makes display on Gemini (in which newlines matter) much more consistent!

I can't spot any errors with the regex I used here, but there may be one or two articles that change shape — hopefully I can spot them and fix them!
2024-06-20 13:40:54 +01:00

17 lines
738 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Trash files in Ruby
date: 2009-03-25T22:42:00+00:00
draft: false
emoji: 🗑️
summary: A Ruby gem I wrote that sends files to Operating System specific Trash/Recycle bins.
tags:
- ruby
- code
- github
- from-tumblr
---
[github.com](https://github.com/jphastings/trash)
Ive 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](https://github.com/jphastings/trash/wiki) for more info) and its been so long since I used Linux (ahh, the [Arch](https://www.archlinux.org/) days) I cant remember how the bins work over there. Anyone want to help?