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