added dir.dir_type field and corresponding value constants (DirType::TYPE_*)