Sha256: d49bb5cabc9da419b3caed7ee5d877c1ffe6a29df8c5a2b7405e5b6d18d4879a

Contents?: true

Size: 266 Bytes

Versions: 8

Compression:

Stored size: 266 Bytes

Contents

class Dir
  def self.mkdir_r(dirPath)
    folders = dirPath.split('/')
    folderToCreate = ''
    folders.each do |folder|
      folderToCreate += folder + '/'
      if !File.directory?(folderToCreate)
        Dir.mkdir(folderToCreate)
      end
    end
  end  
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
kanamei-kanamei-keystone-0.0.12 lib/keystone/core_ext/dir.rb
kanamei-kanamei-keystone-0.0.13 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.11 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.12 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.14 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.15 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.16 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.17 lib/keystone/core_ext/dir.rb