Support DIR_ONLY option