Jake Worth

FileUtils For All

Published: October 01, 2015 2 min read

  • ruby

A step in the Ruby deploy scripts for one of my projects shells out as such: rm -rf build/assets/ui. This prevents all design artifacts from going out with the production push. Pretty cool, right?

The problem comes when a Windows developer joins the project. Windows does not have rm, so that developer can’t deploy. We want to include everybody, even Windows devs!

Ruby’s FileUtils library to the rescue:


This library includes many Ruby methods that mimic Unix terminal commands.


✉️ Get better at programming by learning with me. Subscribe to Jake Worth's Newsletter for bi-weekly ideas, creations, and curated resources from across the world of programming. Join me today!

Blog of Jake Worth, software engineer in Maine.

© 2022 Jake Worth.