vdoc: fix panic on running `v doc -all -m vlib/ -f html -inline-assets` two times in a row
parent
7b8957b25e
commit
6e589e2ae8
|
@ -349,7 +349,10 @@ fn (mut vd VDoc) generate_docs_from_file() {
|
||||||
os.mkdir(out.path) or { panic(err) }
|
os.mkdir(out.path) or { panic(err) }
|
||||||
} else {
|
} else {
|
||||||
for fname in css_js_assets {
|
for fname in css_js_assets {
|
||||||
os.rm(os.join_path(out.path, fname)) or { panic(err) }
|
existing_asset_path := os.join_path(out.path, fname)
|
||||||
|
if os.exists(existing_asset_path) {
|
||||||
|
os.rm(existing_asset_path) or { panic(err) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue