1
0
mirror of https://github.com/minio/docs.git synced 2025-09-16 07:22:15 +03:00
Files
docs/source/minio-cli/minio-mc/mc-tree.rst

1.8 KiB

mc tree

minio

Table of Contents

mc tree

Description

The mc tree command lists buckets and directories in a tree format.

  • When applied to an S3-compatible service bucket, mc tree returns a tree listing of the bucket and all bucket prefixes.
  • When applied to a local filesystem directory, mc tree returns a tree listing of the directory and all of its subdirectories.

Examples

mc tree ALIAS/PATH
  • Replace ALIAS <mc tree TARGET> with the alias <mc alias> of the S3-compatible host.
  • Replace PATH <mc tree TARGET> with the path to the bucket on the S3-compatible host.

Syntax

~mc tree has the following syntax:

mc tree [FLAGS] TARGET [TARGET...]

~mc tree supports the following arguments:

TARGET

Required The full path to an S3-compatible service bucket or local filesystem directory.

For objects on an S3-compatible service, specify the alias <mc alias> of a configured service as the prefix to the ~mc tree TARGET path. For example:

mc stat [FLAGS] play/mybucket

files, f

Includes files in the object or directory in the mc tree output.

rewind