Move getIDs() to DirEnumeration