R2 Object Naming Conventions

When I open my R2 bucket, there is a checkbox that allows me to “View prefixes as directories.” As R2 uses a flat structure without folders, I assume a “/” is used to create directories, but the syntax is unclear to me. Further, I cannot use “/” in Windows when naming files.

What is the proper naming convention in R2 to create directories? Is is possible to rename objects already uploaded to R2 so that I may create directories after uploading objects?

Just drag and drop a folder from your computer.