Skip to content
Simplified interation with file paths in ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
LICENSE
README.rdoc
Rakefile
file_path.gemspec

README.rdoc

FilePath

Summary

Utility for comfortable operation with file paths

Installation

sudo gem install lonelyelk-file_path

Usage

require "rubygems"
require "file_path"

spec_dir = "spec"
spec_files = (FilePath.new / spec_dir / "*_spec.rb").list  #=> an array

(FilePath.new("/some") / "dir" / "some" / "file").exist?
You can’t perform that action at this time.