Sha256: 2761105d3ee8ad7689bcf179fb32b5fe92a662a2d2295c5be11e64d7f30521aa
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
module CodeKindly module Utils class Dir class << self def all (path) require 'fileutils' return [] unless ::Dir.exist?(path) files = ::Dir.entries(path) files.reject!{ |f| "." == f || ".." == f || ".DS_Store" == f || ".keep" == f } files.sort end def find (path) require 'fileutils' all(path).select { |entry| ::File.directory?("#{path}/#{entry}") } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codekindly-utils-0.0.1 | lib/code_kindly/utils/dir.rb |