    # File lib/fog/local/models/storage/file.rb, line 77
            def public_url
              requires :directory, :key

              if service.endpoint
                escaped_directory = URI.escape(directory.key)
                escaped_key = URI.escape(key)

                ::File.join(service.endpoint, escaped_directory, escaped_key)
              else
                nil
              end
            end