Change rule for directory files. break if directory doesn't have files #15