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

tools: skip copying directories in v build-tools (fix ##17437) (#18503)

This commit is contained in:
Laurent Cheylus 2023-06-21 09:07:17 +00:00 committed by GitHub
parent 4485f1ca1e
commit b93e00ae6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,9 @@ fn main() {
os.mv_by_cp(tpath, os.join_path(tfolder, tname, texe)) or { panic(err) } os.mv_by_cp(tpath, os.join_path(tfolder, tname, texe)) or { panic(err) }
continue continue
} }
if os.is_dir(tpath) {
continue
}
target_path := os.join_path(tfolder, texe) target_path := os.join_path(tfolder, texe)
os.mv_by_cp(tpath, target_path) or { os.mv_by_cp(tpath, target_path) or {
emsg := err.msg() emsg := err.msg()