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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user