mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: replace dir_exists with is_dir; file_exists() => exists()
This commit is contained in:
@ -9,7 +9,7 @@ import filepath
|
||||
|
||||
pub fn get_vtmp_folder() string {
|
||||
vtmp := filepath.join(os.tmpdir(),'v')
|
||||
if !os.dir_exists( vtmp ) {
|
||||
if !os.is_dir( vtmp ) {
|
||||
os.mkdir(vtmp) or { panic(err) }
|
||||
}
|
||||
return vtmp
|
||||
|
Reference in New Issue
Block a user