scripts: Switch from mkpath to makedirs
authorMike Schuchardt <mikes@lunarg.com>
Wed, 28 Apr 2021 19:10:06 +0000 (12:10 -0700)
committerMike Schuchardt <mikes@lunarg.com>
Thu, 29 Apr 2021 16:11:03 +0000 (09:11 -0700)
commit7758858c29294771f448e6473fe3f75c609219ec
tree5010c4d1f43b8a06b38a8319b0e824d4379a1f6d
parentbb8231f05fee7c4d597fc202149fe9bdfd3176c3
scripts: Switch from mkpath to makedirs

distutils.dir_util.mkpath will not re-create a directory if it has been
removed with shutil.rmtree because it caches the filesystem under the
hood. This was causing the clone retry to fail on the second iteration
every time.

Switch to using os.makedirs for equivalent functionality without the
cache.
scripts/update_deps.py