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:

committed by
GitHub

parent
055117dc5f
commit
d71c11577a
@ -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 {
|
||||
|
Reference in New Issue
Block a user