Add directory attribute