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

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

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