Skip to main content

create_folder

Function create_folder 

Source
pub async fn create_folder(
    client: &Client,
    bucket: &str,
    prefix: &str,
) -> Result<(), AppError>
Expand description

Create a virtual folder placeholder at bucket/prefix/.

Issues a zero-byte PutObject with key = "{prefix}/". If the object already exists S3 overwrites it silently — the operation is idempotent.

§Errors

  • AppError::AccessDenieds3:PutObject permission denied.
  • AppError::NotFound — bucket does not exist.
  • AppError::Network — any other SDK or transport error.