def getVersions(self):
        """
        Returns the versions of the suitable entries
        available in the directory - an empty list
        if no such entry is available
        """
        if not os.path.exists(self._path):
            return []

        result = []

        for entryName in os.listdir(self._path):
            try:
                entryVersion = Version(entryName)
                result.append(entryVersion)
            except InvalidVersionException:
                continue

        return result
Returns the versions of the suitable entries
        available in the directory - an empty list
        if no such entry is available