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

os: move file logic to file.v (#6013)

This commit is contained in:
Carlos Esquerdo Bernat
2020-08-01 23:07:37 +02:00
committed by GitHub
parent 055117dc5f
commit d71c11577a
5 changed files with 109 additions and 115 deletions

View File

@ -171,10 +171,10 @@ pub fn get_error_msg(code int) string {
}
pub fn (mut f File) close() {
if !f.opened {
if !f.is_opened {
return
}
f.opened = false
f.is_opened = false
/*
$if linux {
$if !android {