Implements opening directories