Building directory object