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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user