Fix Cache#mkdir_p to handle absolute paths - fix #5
This commit is contained in:
1 parent
5a0d80b781
commit
ea30b0b5ee
2 files changed
+11
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user