You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Common commands
Create a folder (mkdir)
Copy page
Download PDF
Create a folder (mkdir)
You can use the mkdir command to create folders locally or in the cloud.​
Command syntax​
​
Linux/macOS
Windows
​
​
​
./tosutil mkdir tos://bucket/clouder_folder [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]​
​
​
​
​
Parameters​
For descriptions of common optional parameters, see Global options.​
​
Parameter​
Type​
Description​
bucket​
String​
Bucket name. For more information on bucket naming conventions, see Common concepts.​
clouder_folder​
String​
Cloud folder. Multiple directory levels are supported, such as a/b/c/. A trailing forward slash is automatically added.​
​
Example​
  • Command​
  • ​
    ./tosutil mkdir tos://bucketname/a/b/c​
    ​
  • Output​
  • ​
    Start at 2024-03-19 12:34:58.745421 +0000 UTC​
    ​
    Create cloud folder [a/b/c/] in bucket [bucketname] successfully, request id [2f8e01f98672b6b065f98672-ac1d9c55-1rmYgE-PuO-cgb-tos]​
    ​
​
Last updated: 2025.12.17 18:33:44