Returns True if this URI is not representing input/output stream
        and names a directory.

def names_container(self):
        """Returns True if this URI is not representing input/output stream
        and names a directory.
        """
        if not self.stream:
            return os.path.isdir(self.object_name)
        else:
            return False