Skip to content

Commit d55418e

Browse files
committed
Creating a new file to explain viewing objects with
a / in the name.
1 parent bcc75f6 commit d55418e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: View objects
3+
pcx_content_type: how-to
4+
sidebar:
5+
order: 10
6+
---
7+
8+
import { FileTree, Tabs, TabItem, Steps } from "~/components"
9+
10+
You can view your objects in a R2 bucket in multiple ways.
11+
12+
- Through the [Cloudflare dashboard](https://dash.cloudflare.com/login).
13+
- Through the [`wrangler list` command](/workers/wrangler/commands/#r2-bucket-list).
14+
- If using [`rclone`](https://rclone.org/install/), through the `rclone ls` command.
15+
16+
## View prefixes as directories
17+
18+
In the Cloudflare dashboard, you can choose to view object with `/` in the name as folders by selecting **View prefixes as directories**.
19+
20+
For example, an object named `example/object` will be displayed as below.
21+
22+
<FileTree>
23+
- example
24+
- object
25+
</FileTree>
26+
27+
Object names which end with `/` will cause the dashboard to render the object as a folder with an unnamed object inside.
28+
29+
For example, uploading an object named `example/` will be displayed as below.
30+
31+
<FileTree>
32+
- example
33+
- `This object is unnamed`
34+
</FileTree>

0 commit comments

Comments
 (0)