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:
Content Hash (file_hash)
file_hash stores the SHA-256 hex digest of the file content. It is set when:
- The client provides
fileHashat upload time (Upload File, Create S3 Entry) - A successful Verify File Integrity call stores the server-computed hash
- Deduplication / instant uploads via Check File Hash
- End-to-end integrity checks via Verify File Integrity
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):
- Pass
lastModified(ms epoch) in the upload request body, or - 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 spaceShared Workspaces
Create workspaces to collaborate with your team
File Types
Drime Cloud automatically recognizes file types:Permissions
When sharing, you can grant different permissions:view
view
Allows viewing the file/folder
edit
edit
Allows modifying the file/folder
download
download
Allows downloading the file
Vault (Encrypted Storage)
The Vault is a client-side encrypted storage area:- Client-side AES encryption
- Keys never leave your device
- Ideal for sensitive documents