Metadata

open class Metadata : Content.Metadata
extension Folder.Metadata: CustomStringConvertible

A pCloud folder.

  • The ownership of this folder.

    Declaration

    Swift

    public let ownership: Ownership
  • This folder’s immediate children.

    Declaration

    Swift

    public let contents: [Content]
  • Initializes a folder with all fields of this class.

    Declaration

    Swift

    public init(id: UInt64,
                name: String,
                parentFolderId: UInt64,
                createdTime: UInt32,
                modifiedTime: UInt32,
                isShared: Bool,
                ownership: Ownership,
                contents: [Content])
  • true if the user accessing this folder is its owner, false otherwise.

    Declaration

    Swift

    open var isOwnedByUser: Bool { get }
  • The folder permissions assigned to this folder by its owner. Non-nil only when the user accessing this folder is not its owner.

    Declaration

    Swift

    open var permissions: Folder.Permissions? { get }
  • Declaration

    Swift

    open var description: String { get }