Change DirectoryEntry to Directory