Skip to main content
A disk is also an S3-compatible bucket. From the SDKs you can read, write, list, and delete its files by key, and create links that let anyone download a file. These calls authenticate with your API key. To use an S3 client or the AWS CLI instead, create S3 credentials and see the S3-compatible API. A key is the file’s path on the disk, without a leading slash: reports/2026-01/data.json is the file /mnt/archil/reports/2026-01/data.json when the disk is mounted at /mnt/archil.

Read and write files

Reading a missing key raises an ArchilS3Error with status 404 and code NoSuchKey.

Large files

One call handles any size. Files larger than the multipart threshold (16 MiB by default) are uploaded in parts, in parallel, and assembled on the disk. Tune the upload with these options:
To run the multipart steps yourself, for example to upload parts from separate processes, use disk.multipart: create, uploadPart, complete, abort, listParts, and listUploads (snake_case in Python).

Append to a file

appendObject adds bytes to the end of a file, creating it if it doesn’t exist. Each call appends up to 1 MiB.

Ownership and directories

Files written through the object API are owned by root:root with mode 0644 unless you set uid, gid, and mode. Set them when a non-root process will use the files:
Missing parent directories are created with the same uid and gid and mode 0755. Existing directories keep their owner and mode. To set the owner of the disk’s root directory, pass rootAttrs (root_attrs in Python) when you create the disk.

List files

listObjects returns every key under a prefix. By default it lists one level, like a directory listing: files in objects and subdirectories in commonPrefixes. Pass recursive to list the whole subtree.

Delete many files

deleteObjects deletes a list of keys in batches of 1,000 and reports failures per key instead of throwing.

Share a file

share creates a signed link that lets anyone download one file, with no API key. It returns the url and its lifetime in seconds, expiresIn. Links last 24 hours by default and up to 7 days.
The link serves the file with its content type and supports HTTP Range requests. After it expires, requests to it return 401.

Retries

The SDKs retry rate limits, server errors, and network failures with backoff. appendObject and completing a multipart upload run once, so a lost response never appends twice.