add just wheather the view is a dir