Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruby/fileutils
Several file utility methods for copying, moving, removing, etc.
https://github.com/ruby/fileutils
fileutils ruby
Last synced: 3 days ago
JSON representation
Several file utility methods for copying, moving, removing, etc.
- Host: GitHub
- URL: https://github.com/ruby/fileutils
- Owner: ruby
- License: other
- Created: 2017-04-12T08:06:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-14T01:18:12.000Z (13 days ago)
- Last Synced: 2025-01-17T06:04:19.144Z (10 days ago)
- Topics: fileutils, ruby
- Language: Ruby
- Homepage:
- Size: 739 KB
- Stars: 62
- Watchers: 34
- Forks: 33
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING
Awesome Lists containing this project
README
# FileUtils
Namespace for several file utility methods for copying, moving, removing, etc.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'fileutils'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install fileutils
## Usage
Just call `FileUtils` methods. For example:
```ruby
FileUtils.mkdir("somedir")
# => ["somedir"]FileUtils.cd("/usr/bin")
FileUtils.pwd
# => "/usr/bin"
```You can find a full method list in the [documentation](https://docs.ruby-lang.org/en/master/FileUtils.html).
## 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](https://opensource.org/licenses/BSD-2-Clause).