Added protected accessors for directory attributes

Added protected accessors for directory attributes so subclasses may use them