1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: cached modules - windows fixes & organise cached module path (#2302)

compiler: cached modules - windows fixes & organise cached module path (#2302)
This commit is contained in:
joe-conigliaro
2019-10-12 16:41:41 +11:00
committed by GitHub
parent dd053d79b0
commit 40156392f8
6 changed files with 41 additions and 39 deletions

View File

@@ -859,12 +859,11 @@ pub fn print_backtrace() {
}
pub fn mkdir_all(path string) {
mut p := ''
mut p := if path.starts_with(os.PathSeparator) { os.PathSeparator } else { '' }
for subdir in path.split(os.PathSeparator) {
p += os.PathSeparator + subdir
p += subdir + os.PathSeparator
if !os.dir_exists(p) {
os.mkdir(p)
}
}
}
}