Metadata

open class Metadata

Base class for a folder content item in pCloud with common fields for files and folders.

  • id

    The unique identifier of this content item.

    Declaration

    Swift

    public let id: UInt64
  • The name of this content item as it appears in the file system.

    Declaration

    Swift

    public let name: String
  • The unique identifier of the parent folder of this item.

    Declaration

    Swift

    public let parentFolderId: UInt64
  • The unix timestamp of the creation time of this content item. This is the time the file was created in the pCloud file system.

    Declaration

    Swift

    public let createdTime: UInt32
  • The unix timestamp of the last modification time of this content item’s metadata or content (for files).

    Declaration

    Swift

    public let modifiedTime: UInt32
  • true if this content item is accessible to other people through folder sharing, false otherwise.

    Declaration

    Swift

    public let isShared: Bool
  • Initializes a content item with all fields of this class.

    Declaration

    Swift

    public init(id: UInt64,
                name: String,
                parentFolderId: UInt64,
                createdTime: UInt32,
                modifiedTime: UInt32,
                isShared: Bool)