mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Removed # and added new error message case
This commit is contained in:

committed by
Alex Medvednikov

parent
ad5e1fd8d4
commit
13f5429dae
@ -516,8 +516,10 @@ mut args := ''
|
||||
|
||||
fn (c &V) v_files_from_dir(dir string) []string {
|
||||
mut res := []string
|
||||
if !os.dir_exists(dir) {
|
||||
if !os.file_exists(dir) {
|
||||
panic('$dir doesn\'t exist')
|
||||
} else if !os.dir_exists(dir) {
|
||||
panic('$dir isn\'t a directory')
|
||||
}
|
||||
mut files := os.ls(dir)
|
||||
if c.is_verbose {
|
||||
|
Reference in New Issue
Block a user