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

ci: separate other_ci.yml and paths_ci.yml; simplify make.bat (#13254)

This commit is contained in:
Delyan Angelov
2022-01-23 12:50:19 +02:00
committed by GitHub
parent 86a2562fa7
commit 34f0d442df
5 changed files with 452 additions and 341 deletions

View File

@ -505,10 +505,7 @@ pub fn is_writable_folder(folder string) ?bool {
}
tmp_folder_name := 'tmp_perm_check_pid_' + getpid().str()
tmp_perm_check := join_path_single(folder, tmp_folder_name)
mut f := open_file(tmp_perm_check, 'w+', 0o700) or {
return error('cannot write to folder $folder: $err')
}
f.close()
write_file(tmp_perm_check, 'test') or { return error('cannot write to folder "$folder": $err') }
rm(tmp_perm_check) ?
return true
}