Skip to content
/ fileutils Public

Several file utility methods for copying, moving, removing, etc.

License

Notifications You must be signed in to change notification settings

ruby/fileutils

Folders and files

NameName
Last commit message
Last commit date
Feb 24, 2025
Apr 12, 2017
Nov 1, 2024
Aug 27, 2024
Apr 12, 2017
Aug 27, 2024
May 15, 2022
Aug 27, 2024
Jun 9, 2023
May 15, 2022
Jun 9, 2023
Aug 27, 2024

Repository files navigation

FileUtils

Namespace for several file utility methods for copying, moving, removing, etc.

Installation

Add this line to your application's Gemfile:

gem 'fileutils'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fileutils

Usage

Just call FileUtils methods. For example:

FileUtils.mkdir("somedir")
# => ["somedir"]

FileUtils.cd("/usr/bin")
FileUtils.pwd
# => "/usr/bin"

You can find a full method list in the documentation.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/fileutils.

License

The gem is available as open source under the terms of the 2-Clause BSD License.