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