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

os: mkdir() error handling

This commit is contained in:
Don Alfons Nisnoni
2019-11-24 00:55:18 +08:00
committed by Alexander Medvednikov
parent 0fb0c43c0a
commit 3a6ccf7f31
12 changed files with 32 additions and 32 deletions

View File

@ -10,7 +10,7 @@ import filepath
pub fn get_vtmp_folder() string {
vtmp := filepath.join(os.tmpdir(),'v')
if !os.dir_exists( vtmp ) {
os.mkdir(vtmp)
os.mkdir(vtmp) or { panic(err) }
}
return vtmp
}