Creating Directory object.