Content

public enum Content
extension Content: CustomStringConvertible

A folder content item.

  • A file.

    Declaration

    Swift

    case file(File.Metadata)
  • A folder.

    Declaration

    Swift

    case folder(Folder.Metadata)
  • Base class for a folder content item in pCloud with common fields for files and folders.

    See more

    Declaration

    Swift

    open class Metadata
  • true if this content item is a folder, false otherwise.

    Declaration

    Swift

    public var isFolder: Bool { get }
  • true if this content item is a file, false otherwise.

    Declaration

    Swift

    public var isFile: Bool { get }
  • The folder metadata for this content item. Non-nil only when this content item is a folder.

    Declaration

    Swift

    public var folderMetadata: Folder.Metadata? { get }
  • Undocumented

    Declaration

    Swift

    public var fileMetadata: File.Metadata? { get }
  • Declaration

    Swift

    public var description: String { get }