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:
@@ -19,7 +19,7 @@ pub fn compile_template(path string) string {
|
||||
panic('html failed')
|
||||
}
|
||||
mut header := ''
|
||||
if os.file_exists('header.html') {
|
||||
if os.exists('header.html') {
|
||||
h := os.read_file('header.html') or {
|
||||
panic('html failed')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user