Sha256: 686da95774d6df71d0d5a0de8183048f422f3eb7c612d6e0219337d016ba1a05
Contents?: true
Size: 267 Bytes
Versions: 1
Compression:
Stored size: 267 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_commander-0.0.1 | dir_glob.rb |