mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: let temp_dir adhere to posix/fhs version 3.0 on linux and mac (#6069)
This commit is contained in:
parent
b22711ef33
commit
09f1362305
@ -1256,8 +1256,11 @@ pub fn temp_dir() string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if path == '' {
|
$if android {
|
||||||
path = os.cache_dir()
|
// TODO test+use '/data/local/tmp' on Android before using cache_dir()
|
||||||
|
if path == '' {
|
||||||
|
path = os.cache_dir()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if path == '' {
|
if path == '' {
|
||||||
path = '/tmp'
|
path = '/tmp'
|
||||||
|
Loading…
Reference in New Issue
Block a user