# Buckets and paths

> How files are organized: buckets, paths that look like folders, public and private buckets.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://files.docs.sypnia.com/buckets/buckets-and-paths/

For agents: Files buckets and paths: bucket holds files identified by bucket + path (slashes look like folders; no folder objects); public bucket (download by anyone via CDN) vs private (default; download only by policy via token or signed URL; never shared in cache); uploads/replace/delete always by policy; names 3–63 lowercase/digits/dashes; paths ≤1,024 bytes UTF-8, no .., leading /, control chars; SDK list/move/copy/remove through policies.

A **bucket** holds files. A file is identified by its bucket and its **path**, such as `receipts/2026/11/order-1042.pdf`. Paths with `/` look like folders in the console and the SDK, but there are no folder objects: a folder exists while a file is in it.

## Public and private

|                         | Public bucket                            | Private bucket (default)                                   |
| ----------------------- | ---------------------------------------- | ---------------------------------------------------------- |
| Download                | anyone with the address, through the CDN | only who your policies allow: with a token or a signed URL |
| Upload, replace, delete | always by your policies                  | always by your policies                                    |
| Cached at the edge      | yes                                      | per signed URL, never shared                               |

Making a bucket public is a setting you change at any time; it does not move files.

## Names

Bucket names: 3 to 63 lowercase letters, digits and dashes. Paths: up to 1,024 bytes of UTF-8; `..`, a leading `/` and control characters are refused.

## Operations

```ts
const avatars = files.bucket('avatars');
await avatars.list('user-42/', { limit: 100, sortBy: 'created_at' });
await avatars.move('user-42/old.jpg', 'user-42/photo.jpg');
await avatars.copy('templates/menu.pdf', 'menus/2026-11.pdf');
await avatars.remove(['user-42/photo.jpg']);
```

Every operation goes through the same policies as an upload.
