Creating a Folder

Function

You can use this command to create a folder in a specified bucket or local file system.

No error is returned if a folder with the same name as an existing one is created, and the content of the existing folder remains unchanged.

Command Line Structure

Examples

Parameter Description

Parameter

Optional or Mandatory

Description

bucket

Mandatory when creating a folder in a specified bucket

The bucket name

folder

Mandatory when creating a folder in a specified bucket

The folder path in the bucket. This value can contain multi-level folders. Separate each level with a slash (/).

folder_url

Mandatory when creating a folder in the local file system

The folder path in the local file system. The value can be an absolute path or a relative path.

bucket-cname

Optional (additional parameter)

The user-defined domain name bound to the bucket

NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

config

Optional (additional parameter)

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

payer

Optional (additional parameter)

Specifies that requester pays is enabled.