Sha256: 0433892e306d9570e4ec36fce379b00bb328a40c92b1c39cb5ad0fa5b7ba7d9d

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

require 'fileutils'

class Dir
  def self.make directory
  	FileUtils.mkdir_p directory if !File.exists? directory
  end
  def self.remove directory
    if(File.exists?(directory))
      begin
        FileUtils.rm_rf directory
        FileUtils.rm_r directory
      rescue
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dev-2.0.268 lib/base/dir.rb
dev-2.0.267 lib/base/dir.rb
dev-2.0.266 lib/base/dir.rb
dev-2.0.265 lib/base/dir.rb