avoid mkdir() race conditions - close #75

This commit is contained in:
josh committed 2018-12-11 22:13:52 -05:00
1 parent 432d221be2
commit 5720662b7c
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -295,7 +295,7 @@ module Rscons
next if parts[i] == ""
subpath = File.join(*parts[0, i + 1])
unless File.exists?(subpath)
FileUtils.mkdir(subpath)
FileUtils.mkdir_p(subpath)
@cache["directories"][subpath] = true
@dirty = true
end