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:
@ -152,7 +152,7 @@ fn get_vmodules_dir_path() string {
|
||||
|
||||
fn ensure_vmodules_dir_exist() {
|
||||
home_vmodules := get_vmodules_dir_path()
|
||||
if !os.dir_exists( home_vmodules ) {
|
||||
if !os.is_dir( home_vmodules ) {
|
||||
println('Creating $home_vmodules/ ...')
|
||||
os.mkdir(home_vmodules) or { panic(err) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user