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