From f1cd3580ebc176e87dc75643089e9e5dba847c95 Mon Sep 17 00:00:00 2001 From: Henrixounez Date: Sun, 23 Jun 2019 11:09:23 +0200 Subject: [PATCH] main.v: checking directory before trying to fetch files in said directory --- compiler/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index 7fd501c3fd..71bf18f00a 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -516,10 +516,10 @@ mut args := '' fn (c &V) v_files_from_dir(dir string) []string { mut res := []string - mut files := os.ls(dir) if !os.file_exists(dir) { panic('$dir doesn\'t exist') } + mut files := os.ls(dir) if c.is_verbose { println('v_files_from_dir ("$dir")') }