# File lib/fog/hp/models/storage/directory.rb, line 68 def public_url requires :key @public_url ||= begin begin response = service.head_container(key) # escape the key to cover for special char. in container names url = "#{service.url}/#{Fog::HP.escape(key)}" rescue Fog::Storage::HP::NotFound => err nil end end end