FileMetadata

public class FileMetadata : Files.Metadata

The FileMetadata struct

  • id

    A unique identifier for the file.

    Declaration

    Swift

    public let id: String
  • For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.

    Declaration

    Swift

    public let clientModified: Date
  • The last time the file was modified on Dropbox.

    Declaration

    Swift

    public let serverModified: Date
  • rev

    A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.

    Declaration

    Swift

    public let rev: String
  • The file size in bytes.

    Declaration

    Swift

    public let size: UInt64
  • Additional information if the file is a photo or video. This field will not be set on entries returned by listFolder, listFolderContinue, or getThumbnailBatch, starting December 2, 2019.

    Declaration

    Swift

    public let mediaInfo: Files.MediaInfo?
  • Set if this file is a symlink.

    Declaration

    Swift

    public let symlinkInfo: Files.SymlinkInfo?
  • Set if this file is contained in a shared folder.

    Declaration

    Swift

    public let sharingInfo: Files.FileSharingInfo?
  • If true, file can be downloaded directly; else the file must be exported.

    Declaration

    Swift

    public let isDownloadable: Bool
  • Information about format this file can be exported to. This filed must be set if isDownloadable is set to false.

    Declaration

    Swift

    public let exportInfo: Files.ExportInfo?
  • Additional information if the file has custom properties with the property template specified.

    Declaration

    Swift

    public let propertyGroups: [FileProperties.PropertyGroup]?
  • This flag will only be present if include_has_explicit_shared_members is true in listFolder or getMetadata. If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder.

    Declaration

    Swift

    public let hasExplicitSharedMembers: Bool?
  • A hash of the file content. This field can be used to verify data integrity. For more information see our Content hash https://www.dropbox.com/developers/reference/content-hash page.

    Declaration

    Swift

    public let contentHash: String?
  • If present, the metadata associated with the file’s current lock.

    Declaration

    Swift

    public let fileLockInfo: Files.FileLockMetadata?