IPWorks Cloud 2020 Delphi Edition

Questions / Feedback?

DropboxResource Type

A Dropbox resource.

Remarks

This type represents a Dropbox resource.

Fields

AccessType
TicsDropboxResourceAccessTypes

The type of access the current user has to the resource.

This property reflects the type of access the current user has to the resource. Possible values are:

0 (atUnrestricted) The user's access to the resource is not restricted.
1 (atReadOnly) The user has read-only access to the resource. This indicates that the resource is, or is located within, a read-only shared folder.
2 (atLimited) The user has limited access to the immediate contents of the folder resource (by virtue of having access to one or more other resources located somewhere within the folder). See further notes below. Only applicable to folders.
3 (atNoAccess) The user is allowed to see that the folder resource exists, but may not access its contents. Only applicable to folders.

An access type of 2 (atLimited) still allows the user to call ListResources for a folder, but the results will be limited to the subset of resources within that folder that the user can actually access (including any further limited-access subfolders).

ClientModifiedTime
String

The client-side last modified timestamp of the file resource.

This property holds the last modified timestamp of the file resource, as reported by a client. Timestamps are formatted according to ISO 8601 and are always in UTC time.

Not applicable for folder resources. May be empty or inaccurate for file resources if clients choose not to provide a value when uploading or updating the file contents.

Deleted
Boolean

Whether the resource has been deleted.

This property reflects whether the resource has been deleted.

ExportExtension
String

The file extension of the file format that the file resource will be exported as.

Some file resources are "export-only"; i.e., they're stored in Dropbox using a server-only file format, and get exported to a "normal" file format when DownloadFile is called. For export-only file resources, this property reflects the file extension of the export file format; it is empty for all other resources.

When downloading an export-only file resource to a LocalFile, the component will automatically append the file extension reflected by this property, if necessary.

Hash
String

A hash of the file resource's content.

This property holds a hash of the file resource's content. Not applicable for folder resources.

Refer to the Dropbox API documentation for an explanation of how the server calculates file content hashes.

Id
String

The Id of the resource.

This property reflects the Id of the resource.

ModifiedTime
String

The last modified timestamp of the file resource.

This property holds the last modified timestamp of the file resource, as reported by the server. Not applicable for folder resources. Timestamps are formatted according to ISO 8601 and are always in UTC time.

Name
String

The name of the resource.

This property reflects the name of the resource.

ParentShareId
String

The shared folder Id of the resource's parent.

This property reflects the shared folder Id of the resource's parent, if its parent is a shared folder.

Path
String

The path of the resource.

This property reflects the path of the resource.

Revision
String

The revision Id of the file resource.

This property reflects the revision Id of the file resource. Not applicable for folder resources.

ShareId
String

The shared folder Id of the folder resource.

This property reflects the shared folder Id of the folder resource, if the resource is a shared folder. Not applicable for file resources.

Size
Int64

The size of the file resource.

This property holds the size of the file resource, in bytes. Not applicable for folder resources.

Type
TicsDropboxResourceTypes

The resource's type.

This property indicates whether the resource is a folder or a file. Possible values are:

0 (drtFile) A file.
1 (drtFolder) A folder.

Constructors

constructor Create();

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Delphi Edition - Version 20.0 [Build 8265]