loader: `identify_group` ignore local files that are not directories.
authorJean Privat <jean@pryen.org>
Fri, 17 Jun 2016 17:20:27 +0000 (13:20 -0400)
committerJean Privat <jean@pryen.org>
Fri, 17 Jun 2016 17:20:27 +0000 (13:20 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/loader.nit

index 8ac6ef5..d1e4997 100644 (file)
@@ -424,7 +424,7 @@ redef class ModelBuilder
        do
                var stat = dirpath.file_stat
 
-               if stat == null then do
+               if stat == null or not stat.is_dir then do
                        # search dirless directories in known -I paths
                        if dirpath.chars.has('/') then return null
                        for p in paths do