@@ -608,10 +608,11 @@ if {$mode == "write"} { set tmplocalpath "${localpath}.[expr rand()][clock clicks]" catch { + file mkdir [file dirname $localpath] file copy -force -- $localcachefile $tmplocalpath if {$pkgpathinfo(perms) == "x"} { file attributes $tmplocalpath -permissions +x }