Sha256: 161eec95fbfb69a36232dd00428686284274636ed656d30a09288e61eb900e48

Contents?: true

Size: 307 Bytes

Versions: 11

Compression:

Stored size: 307 Bytes

Contents

class Dir


  # TODO
  # replace FileUtils.mkdir_p
  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

11 entries across 11 versions & 2 rubygems

Version Path
kanamei-keystone-0.0.18 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.19 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.20 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.21 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.22 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.23 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.24 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.25 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.26 lib/keystone/core_ext/dir.rb
kanamei-keystone-0.0.27 lib/keystone/core_ext/dir.rb
keystone-0.0.29 lib/keystone/core_ext/dir.rb