Sha256: 2aa8d98857b0e6ae192a13b39ff901454628609b8efc85c4353cfa96cb33fa6d

Contents?: true

Size: 275 Bytes

Versions: 8

Compression:

Stored size: 275 Bytes

Contents

require 'byebug'
require 'fileutils'

FileUtils.rm('Manifest')

def glob(path)
  return if !File.directory?(path) && path != '**'
  path = "#{path}/*"
  Dir.glob(path) do |file|
    File.open('Manifest', 'a') { |f| f.write("#{file}\n") }
    glob(file)
  end
end

glob('**')

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_commander-0.6.1 dir_glob.rb
simple_commander-0.6.0 dir_glob.rb
simple_commander-0.5.1 dir_glob.rb
simple_commander-0.5.0 dir_glob.rb
simple_commander-0.4.0 dir_glob.rb
simple_commander-0.3.1 dir_glob.rb
simple_commander-0.3.0 dir_glob.rb
simple_commander-0.1.0 dir_glob.rb