Skip to main content

File Entries

A File Entry represents either a file or a folder in Drime Cloud. Each entry has:
  • A unique ID
  • A hash for public URLs
  • A parent_id (null = root)
  • A workspace_id (0 = personal space)

Identifiers: id vs hash

Every entry carries two identifiers. They are not interchangeable everywhere:
The hash field is an encoded identifier, not a hash of the file content. For content hashing (integrity, deduplication), see file_hash below.

Content Hash (file_hash)

file_hash stores the SHA-256 hex digest of the file content. It is set when: Use it for:

Timestamps & Modification Time

File entries expose several time fields with distinct meanings: To preserve the original mtime of files (like rclone’s SetModTime or a sync client would):
  1. Pass lastModified (ms epoch) in the upload request body, or
  2. Call Set File Metadata on an existing entry

Workspaces

Workspaces allow you to organize your files and collaborate:

Personal Space

workspaceId = 0 represents your default personal space

Shared Workspaces

Create workspaces to collaborate with your team

File Types

Drime Cloud automatically recognizes file types:

Permissions

When sharing, you can grant different permissions:
Allows viewing the file/folder
Allows modifying the file/folder
Allows downloading the file

Vault (Encrypted Storage)

The Vault is a client-side encrypted storage area:
Vault files are encrypted with your password. If you lose this password, files are unrecoverable.
  • Client-side AES encryption
  • Keys never leave your device
  • Ideal for sensitive documents