How to perform file operations (delete, copy, move, etc.) with Ruby's Fileutils [For beginners]
Explains how to perform file operations (delete, copy, move, etc.) with Fileutils of Ruby.
If you're not familiar with Ruby in the first place, you can read the article that explains what Ruby is for a deeper understanding.
This article is based on the contents of the Ruby course of TechAcademy's online boot camp.
What is Fileutils?
Various classes are built into Ruby. `FileUtils` is one of them, and there are many useful methods especially for files and directories.
For example, you can delete, copy, and move files.
How to perform file operations with Fileutils
Since `FileUtils` is a module, it can be used without instantiation.
It is also a built-in standard library, so `require`…