Fix Cache#mkdir_p to handle absolute paths - fix #5

This commit is contained in:
josh committed 2014-04-15 14:15:32 -04:00
1 parent 5a0d80b781
commit ea30b0b5ee
2 files changed
+11

No files matched your search

+1
View File
@@ -181,6 +181,7 @@ module Rscons
def mkdir_p(path)
parts = path.split(/[\\\/]/)
parts.each_index do |i|
next if parts[i] == ""
subpath = File.join(*parts[0, i + 1])
unless File.exists?(subpath)
FileUtils.mkdir(subpath)