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:
@ -170,7 +170,7 @@ fn (v &V) find_module_path(mod string) ?string {
|
||||
}
|
||||
for try_path in tried_paths {
|
||||
if v.pref.is_verbose { println(' >> trying to find $mod in $try_path ...') }
|
||||
if os.dir_exists(try_path) {
|
||||
if os.is_dir(try_path) {
|
||||
return try_path
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user