mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
os: mkdir() error handling
This commit is contained in:
parent
0fb0c43c0a
commit
3a6ccf7f31
12 changed files with 32 additions and 32 deletions
|
@ -36,7 +36,7 @@ fn generate_vh(mod string) {
|
|||
pdir := dir.all_before_last(os.path_separator)
|
||||
if !os.dir_exists(pdir) {
|
||||
os.mkdir_all(pdir)
|
||||
// os.mkdir(os.realpath(dir))
|
||||
// os.mkdir(os.realpath(dir)) or { panic(err) }
|
||||
}
|
||||
out := os.create(path) or { panic(err) }
|
||||
mod_path := mod.replace("\\", "/")
|
||||
|
@ -169,5 +169,3 @@ fn (g mut VhGen) generate_type() {
|
|||
//g.i = old
|
||||
//g.i--
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue