def initialize(container, objectname, force_exists = false, make_path = false)
@container = container
@containername = container.name
@name = objectname
@make_path = make_path
@storagehost = self.container.connection.storagehost
@storagepath = self.container.connection.storagepath + "/#{CloudFiles.escape @containername}/#{CloudFiles.escape @name, '/'}"
@storageport = self.container.connection.storageport
@storagescheme = self.container.connection.storagescheme
if self.container.connection.cdn_available?
@cdnmgmthost = self.container.connection.cdnmgmthost
@cdnmgmtpath = self.container.connection.cdnmgmtpath + "/#{CloudFiles.escape @containername}/#{CloudFiles.escape @name, '/'}"
@cdnmgmtport = self.container.connection.cdnmgmtport
@cdnmgmtscheme = self.container.connection.cdnmgmtscheme
end
if force_exists
raise CloudFiles::Exception::NoSuchObject, "Object #{@name} does not exist" unless container.object_exists?(objectname)
end
end