File

public struct File : Codable, Equatable, FunctionResult

Represents a file

  • id

    Unique file identifier

    Declaration

    Swift

    public let id: Int32
  • File size; 0 if unknown

    Declaration

    Swift

    public let size: Int32
  • Expected file size in case the exact file size is unknown, but an approximate size is known. Can be used to show download/upload progress

    Declaration

    Swift

    public let expectedSize: Int32
  • Information about the local copy of the file

    Declaration

    Swift

    public let local: LocalFile
  • Information about the remote copy of the file

    Declaration

    Swift

    public let remote: RemoteFile
  • Represents a file

    Declaration

    Swift

    public init(id: Int32, size: Int32, expectedSize: Int32, local: LocalFile, remote: RemoteFile)

    Parameters

    id

    Unique file identifier

    size

    File size; 0 if unknown

    expectedSize

    Expected file size in case the exact file size is unknown, but an approximate size is known. Can be used to show download/upload progress

    local

    Information about the local copy of the file

    remote

    Information about the remote copy of the file